TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Why Use Postgres?

568 pointsby timfabout 8 years ago

14 comments

ainar-gabout 8 years ago
<a href="https:&#x2F;&#x2F;www.postgresql.org&#x2F;docs&#x2F;9.6&#x2F;static&#x2F;rangetypes.html" rel="nofollow">https:&#x2F;&#x2F;www.postgresql.org&#x2F;docs&#x2F;9.6&#x2F;static&#x2F;rangetypes.html</a><p><a href="https:&#x2F;&#x2F;www.postgresql.org&#x2F;docs&#x2F;9.6&#x2F;static&#x2F;functions-range.html" rel="nofollow">https:&#x2F;&#x2F;www.postgresql.org&#x2F;docs&#x2F;9.6&#x2F;static&#x2F;functions-range.h...</a><p>Holy shit. Why hasn&#x27;t anyone talked about it sooner? I&#x27;ve seen literally dozens of tables with<p><pre><code> begin TIMESTAMP, end TIMESTAMP, </code></pre> and with handmade validation against intersection. And there is even a union operation! Seriously, my mind is blown.<p>Rails even supports it!<p><a href="http:&#x2F;&#x2F;edgeguides.rubyonrails.org&#x2F;active_record_postgresql.html#range-types" rel="nofollow">http:&#x2F;&#x2F;edgeguides.rubyonrails.org&#x2F;active_record_postgresql.h...</a>
评论 #14234284 未加载
评论 #14233081 未加载
评论 #14232582 未加载
评论 #14234975 未加载
评论 #14234958 未加载
评论 #14233931 未加载
评论 #14233490 未加载
unixheroabout 8 years ago
Far too brief.<p>I would appreciate a really long text that would in a convincing manner explain why Postgres Is so awesome.<p>I work in the industry, and all I see are Oracle and Sybase everywhere. The experts are zealots also, not even having heard of Postgres. Not willing to believe a word I&#x27;m saying about Postgres.<p>I am already convinced of course, but the industry is not. Not finance, not trading, not telecom.
评论 #14232793 未加载
评论 #14233676 未加载
评论 #14232755 未加载
评论 #14233009 未加载
评论 #14233396 未加载
评论 #14232642 未加载
评论 #14233566 未加载
评论 #14235933 未加载
评论 #14233067 未加载
评论 #14233474 未加载
评论 #14233013 未加载
jerrysievertabout 8 years ago
great read, but may I also suggest Array?<p>being able to have a field like:<p><pre><code> ingredients VARCHAR[] </code></pre> and index like:<p><pre><code> USING GIN (ingredients) </code></pre> and using an operator like @&gt;<p><pre><code> SELECT * FROM table WHERE ingredients @&gt; ARRAY[&#x27;mushrooms&#x27;, &#x27;sour cream&#x27;] </code></pre> gives you such amazing flexibility and speed, it&#x27;s not even funny.<p>also, while I was sad to not see PLV8 up there with PostGIS (an amazing extension, btw), I was still happy to see it mentioned with such gusto.
评论 #14232991 未加载
评论 #14235278 未加载
billionsabout 8 years ago
Postgres seems to have become the go-to relational database ever since MySQL fell in the hands of Oracle. Can anyone speak to how its json tree compares to MongoDB&#x27;s document store in practice?
评论 #14232494 未加载
评论 #14234208 未加载
评论 #14232482 未加载
评论 #14232496 未加载
评论 #14233823 未加载
评论 #14237161 未加载
评论 #14232573 未加载
retoxabout 8 years ago
I rented some time on a vultr server recently and chose a prepackaged build which included a MySql install. Coming from a MS SQL background it felt positively medieval. I haven&#x27;t migrated yet but from my research Postgres seems the closest competitor in the relational db space.<p>I considered MS SQL for Linux but the server alone required 3GB RAM...
评论 #14233103 未加载
评论 #14232788 未加载
fabian2kabout 8 years ago
HyperLogLog sounds interesting, but looking at the Github page of that extension it mentions that it has been tested with the versions 9.0, 9.1, 9.2, 9.3 and the last commit is 2014. Is it just finished and doesn&#x27;t need any updates to keep up with newer Postgres versions? Or is it more of an abandonded project?
评论 #14234776 未加载
评论 #14232784 未加载
scurvyabout 8 years ago
Is there a new way around the requirement to rebuild your entire replication topology after upgrading versions? (say 9.4 to 9.5) You get a new master ID when running the initdb step, and doing this throws everything else in the topology off. TIA
myth17about 8 years ago
Most important reason to use PostgreSQL : Constant Time Recovery (Recovery from long running transaction that rollback is instantaneous)
mack73about 8 years ago
From reading the documentation [0] I can&#x27;t help but feel a bit underwhelmed by the feature set of a GIST index. Maybe I&#x27;m not looking in the right place, but what index provide near mathes (fuzzy, prefix) as well as exact term matches?
评论 #14263285 未加载
avenoirabout 8 years ago
Has anyone done a serious implementation on top of full-text search functionality in Postgres? I have a pretty large dataset that&#x27;s currently in Postgres and I&#x27;m deciding between it and Elasticsearch.
评论 #14234581 未加载
评论 #14234240 未加载
frostymarvelousabout 8 years ago
Interestingly, I just yesterday published a post about pglogical. <a href="http:&#x2F;&#x2F;thedumbtechguy.blogspot.com&#x2F;2017&#x2F;04&#x2F;demystifying-pglogical-tutorial.html" rel="nofollow">http:&#x2F;&#x2F;thedumbtechguy.blogspot.com&#x2F;2017&#x2F;04&#x2F;demystifying-pglo...</a><p>Postgres is an amazing piece of software.
Minikloonabout 8 years ago
No disclaimer in the article that the author works for Citus.
评论 #14232516 未加载
评论 #14232395 未加载
评论 #14232392 未加载
jgordabout 8 years ago
Id love postgres even more if they had native support for writing stored procs [ functions ] in javascript.
评论 #14234409 未加载
hartatorabout 8 years ago
Even with the inclusion of JSONB, I think Postgres is still lagging behind MongoDB by enforcing schema. After so many years doing web apps, I am seeing very little interest to have to enforce 2 times the schema: one time in the DB via migtations and one time in the app itself via ORMs. Maybe I am missing something really obvious.<p>ps: I don&#x27;t mind the downvoting. I am truly looking for answers.
评论 #14233155 未加载
评论 #14233138 未加载
评论 #14232999 未加载
评论 #14233288 未加载
评论 #14232553 未加载
评论 #14232544 未加载
评论 #14233115 未加载
评论 #14232591 未加载
评论 #14236041 未加载