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.

Underrated Features of PostgreSQL

185 pointsby ceyhunkazelover 13 years ago

10 comments

glenngillenover 13 years ago
Ryan Smith has wrapped the use of LISTEN/NOTIFY into a really handy queuing library called queue_classic that we've been using internally at Heroku. He does a good write up of it over on his blog: <a href="http://ryandotsmith.heroku.com/2011/09/queue_classic.html" rel="nofollow">http://ryandotsmith.heroku.com/2011/09/queue_classic.html</a>
famousactressover 13 years ago
I used Postgres in a former life.. really liked it, but switched to MySQL because at the time pg didn't have a very palatable solution for running a read-slave. Boy have I been interested in jumping back since v8&#38;9! A question about partial indexes... Can this be used to solve the problem of multi-column unique constraints with null values? That is.. Say I've got columns a, b, and deleted_time. If a null deleted_time means the item hasn't been deleted.. traditionally I can't create a useful unique constraint across them (because NULL != NULL). Does this postgres feature allow me to create a unique constraint on (A,B) where deleted_time is null ?
评论 #3187407 未加载
reuvenover 13 years ago
I've been using PostgreSQL for about 15 years, and it's a rare week when I don't discover a feature that makes my life (and that of my clients) easier and better in some way. The software is rock solid, the feature set both broad and deep, and the community is generous in many different ways. It's really a pleasure to use this database, and to see that a growing number of people are starting to use it.
评论 #3187675 未加载
评论 #3188039 未加载
mjijacksonover 13 years ago
This is a very well-written article. I really enjoyed the "What it is", "Why I like it", "How I'd use it" format. It is much more helpful than a simple list of features.
y0ghur7_xxxover 13 years ago
I also love Veil¹. A lot of applications I write are LOB apps with a lot of contorted ACLs on rows.<p>For example a user with role "Secretary" can view all calendar entries of her department, but not those of other departments, and a user with role "User" can only see the calendar entries of his office mates.<p>With Veil I can implement those access rules on the database once, and they are applied to all frontends for the data (web apps, desktop apps and mobile apps)<p>¹<a href="http://veil.projects.postgresql.org/curdocs/index.html" rel="nofollow">http://veil.projects.postgresql.org/curdocs/index.html</a>
pieludover 13 years ago
Where is transactional DDL on this list?
评论 #3187015 未加载
评论 #3187920 未加载
评论 #3189771 未加载
mapgrepover 13 years ago
Using PostgreSQL for full text search is a bad idea. There is no native support for exact phrase searching "like this;" there are some hacky workarounds but you lose stemming and have to do a scan (<a href="http://stackoverflow.com/questions/1489617/how-do-you-do-phrase-based-full-text-search-in-postgres-that-takes-advantage-of" rel="nofollow">http://stackoverflow.com/questions/1489617/how-do-you-do-phr...</a>).<p>High quality, world class text search is a basic prerequisite for a production web app these days (if your app needs search at all). The idea of keeping your database and search engine data in one silo is really beautiful, conceptually, but at the moment it is better for your users if you swallow the complexity of maintaining a parallel, dedicated full text search index (e.g. like Lucene) alongside your regular db. Relying on postgres for full text search is a three quarters solution, and if you believed in three quarter solutions you would not be using postgres in the first place.<p>Just my .02.
评论 #3187939 未加载
评论 #3187899 未加载
评论 #3189854 未加载
评论 #3190175 未加载
评论 #3188821 未加载
rdunklauover 13 years ago
On the top of my head, another list of features worth looking at: - ARRAY support: makes your life easier, especially the array_agg aggregation function - HSTORE extension: use postgresql like a key/value store - SQL/MED implementation, foreign data wrappers: allows you to define external data sources as an extension.<p>Things that I miss in postgresql: - materialized views !! - a better graphical management tool.
评论 #3187907 未加载
评论 #3189832 未加载
apinsteinover 13 years ago
Clustered indexes are really useful, too. They drastically speed up certain types of queries, though there is the overhead of having to periodically run CLUSTER.
评论 #3190034 未加载
saturnover 13 years ago
The one thing I miss after switching to PostgreSQL from MySQL is Sequel Pro. pgAdmin 3, sorry to say, sucks, and I grow tired of rails dbconsole - but that's my only option, really.<p>Please, someone, make a good osx pg client. Just copy Sequel Pro if you don't know what I mean by that. I would pay a lot of money for a good osx client, I am not kidding, I have to deal with this every day. I cannot be the only one..
评论 #3187452 未加载
评论 #3187730 未加载
评论 #3187220 未加载
评论 #3189282 未加载
评论 #3187676 未加载
评论 #3187638 未加载
评论 #3189440 未加载
评论 #3187732 未加载