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.

A Curated Guide to PostgreSQL

83 pointsby b14ckabout 13 years ago

4 comments

james4kabout 13 years ago
&#62; Its of note that Postgres does not automatically create an index when creating the primary key, it is a separate step which you must do if not using an ORM. (<a href="http://postgresguide.com/performance/indexes.html#primary-keys-and-indexes" rel="nofollow">http://postgresguide.com/performance/indexes.html#primary-ke...</a>)<p>This directly contradicts with what the PostgreSQL documentation says.<p>&#62; Adding a primary key will automatically create a unique btree index on the column or group of columns used in the primary key. (<a href="http://www.postgresql.org/docs/9.1/interactive/ddl-constraints.html#AEN2493" rel="nofollow">http://www.postgresql.org/docs/9.1/interactive/ddl-constrain...</a>)<p>Is there a fundamental difference to the default pkey index versus an explicitly created index?
评论 #3885861 未加载
sciurusabout 13 years ago
They ink to PostgreSQL 9.0 High Performance (<a href="http://www.amazon.com/gp/product/184951030X/" rel="nofollow">http://www.amazon.com/gp/product/184951030X/</a>), which I agree is a great book if you're a sysadmin supporting PostgreSQL.
评论 #3886428 未加载
评论 #3886386 未加载
wulczerabout 13 years ago
While the idea is nice, please note that the official name is PostgreSQL and Postgres is an accepted alias. "Postgre SQL" is just plain wrong.
评论 #3886451 未加载
评论 #3885654 未加载
davidwabout 13 years ago
"Curated"? As opposed to a what, an automatically generated one?<p>SELECT RANDOM(GUIDE) FROM DATABASES WHERE DATABASE_NAME = 'POSTGRES'; ?!<p>The original article, thankfully, says nothing about being "curated".