Live data from Hacker News

PostgreSQL Rising

wekeroad.com

201–204 of 204 posts

Re: PostgreSQL Rising

#201

Something that tends to get overlooked in pg/mysql discussions is administration - more specifically account management. all of this is done in the 'mysql' database via SQL directly in mysql ('insert into user', 'grant permission', etc). Most tutorials on PG I've seen over the years show these things being done from the commandline, and assume a unix environment, and an understanding of connecting from various accoun…

CREATE USER is a standard in many relational databases e.g MySQL, PostgreSQL etc. You really shouldn't be inserting directly into mysql system tables. It's not portable.

PostgreSQL has phppgadmin and pgAdmin which provide a nice GUI experience for role management.

Re: PostgreSQL Rising

#202

I've been neck deep in MySQL for the past 5-6 years, simply b/c that's what my company uses. I've been wanting to pick up postgres but my only motivation has been curiosity. Any good resources/tutorials people here can recommend?

Our site is dedicated to that: http://www.postgresonline.com/

Also check out our new book which came out this month. http://shop.oreilly.com/product/0636920025061.do

Its primary target audience are people coming from other relational databases.

Re: PostgreSQL Rising

#203

Earlier quoted context omitted.

"... throw serious doubts on the popular myth that count( ) is slow in PostgreSQL." Whew! Glad that was only a myth! I'll remind myself of that whenever my code takes > 10 seconds to return the count( ) from a table. "Just a myth - this isn't really happening". I'll try repeating that to myself while waiting for the results - probably should only take 10-15 repeats of the phrase before the row returns, right? Whoah -…

You can do a fast, conditionless count that ignores current transaction state and therefore risks being slightly out of date, but usually good enough for most use cases: select n_live_tup from pg_stat_user_tables where relname = 'mytable'

Way more people should be using this.

Re: PostgreSQL Rising

#204
AAAAAAAAAAAAAAAAAAAA

BBBBBBBBBBBBBBBBBBBB

CCCCCCCCCCCCCCCCCCCC

DDDDDDDDDDDDDDDDDDDD

EEEEEEEEEEEEEEEEEEEE

FFFFFFFFFFFFFFFFFFFF

GGGGGGGGGGGGGGGGGGGG

HHHHHHHHHHHHHHHHHHHH

IIIIIIIIIIIIIIIIIIII

JJJJJJJJJJJJJJJJJJJJ

KKKKKKKKKKKKKKKKKKKK

LLLLLLLLLLLLLLLLLLLL

MMMMMMMMMMMMMMMMMMMM

NNNNNNNNNNNNNNNNNNNN

OOOOOOOOOOOOOOOOOOOO

PPPPPPPPPPPPPPPPPPPP

QQQQQQQQQQQQQQQQQQQQ

RRRRRRRRRRRRRRRRRRRR

SSSSSSSSSSSSSSSSSSSS

TTTTTTTTTTTTTTTTTTTT

UUUUUUUUUUUUUUUUUUUU

VVVVVVVVVVVVVVVVVVVV

WWWWWWWWWWWWWWWWWWWW

XXXXXXXXXXXXXXXXXXXX

YYYYYYYYYYYYYYYYYYYY

ZZZZZZZZZZZZZZZZZZZZ

Post reply on HN