Postgres TOTD
@postgres_totd
Postgres Tweet of the Day
Bạn có thể thích
Postgres TOTD: Use the 'END' as a shortcut for context-sensitive COMMIT or ROLLBACK.
Postgres TOTD: VACUUM FULL and REINDEX do heavy locking, but with autovacuum you should rarely need them.
Postgres TOTD: Logging can go through syslog: control the facility and ident via postgresql.conf.
Postgres TOTD: Postgres 8.4 has a backwards-compatible psql, including backslash commands (finally!)
Postgres TOTD: A table can be physically reordered based on an index with the CLUSTER command. http://tr.im/sI5d
Postgres TOTD: 8.4 has windowing functions: see how they compare to other dbs: http://tr.im/snRO
Postgres TOTD: ANALYZE can be run on the entire database, on a single table, and even on a single column. http://tr.im/sc1L
Postgres TOTD: View PostgreSQL information in a format similar to the Unix tool 'top' with pg_top: http://tr.im/pNXr
Postgres TOTD: Postgres 8.4 gets rid of max_fsm_pages and max_fsm_relations. Two less knobs to worry about!
Postgres TOTD: Postgres natively supports many DTrace probes as of version 8.2. http://tr.im/pvPk
Postgres TOTD: Don't kill -9 backends. Postgres will survive, but other clients may have to reconnect.
Postgres TOTD: LEFT and RIGHT joins are equivalent, so always use LEFT joins to reduce confusion. http://tr.im/oS3I
Postgres TOTD: Subqueries can be used almost everywhere: select (select 1) as c from (select 1) t where 1 = (select 1) limit (select 1);
Postgres TOTD: Make sure you run a global ANALYZE after restoring a database or any other large data import.
Postgres TOTD: When working on someone else's system, call psql with -X to bypass any unknown conf files.
Postgres TOTD: In psql, see how fast all your queries take by toggling \timing on.
Postgres TOTD: Temporary tables can be set as ON COMMIT DELETE to automatically remove them. http://tr.im/nXRC
Postgres TOTD: Starting in PostgreSQL version 8.4, you can use ON TRUNCATE triggers. http://tr.im/nQ7I
Postgres TOTD: One of the many languages available for PostgreSQL functions is LOLCODE. http://tr.im/nAjS (YA RLY!)
Postgres TOTD: When writing functions, put the LANGUAGE declaration with the rest of the metadata at the top.
United States Xu hướng
- 1. The BONK 278K posts
- 2. FINALLY DID IT 700K posts
- 3. Namjoon 98.5K posts
- 4. Good Saturday 24.1K posts
- 5. rUSD N/A
- 6. #AVLARS 4,689 posts
- 7. #SaturdayVibes 3,067 posts
- 8. The EU 384K posts
- 9. #MeAndTheeSeriesEP4 299K posts
- 10. Villa 86.1K posts
- 11. #saturdaymorning N/A
- 12. #SaturdayMotivation 2,807 posts
- 13. Watkins 5,445 posts
- 14. Caturday 4,004 posts
- 15. MEET DAY 11.1K posts
- 16. St. Nicholas 6,549 posts
- 17. Cocona 151K posts
- 18. Gunther 27K posts
- 19. Trouba 1,359 posts
- 20. Flag Day 3,706 posts
Something went wrong.
Something went wrong.