Viewing profile — nierman
nierman
HN member- Joined
- Sat, Nov 20, 2010, 12:30 AM UTC
- HN karma
- 36
- Public activity
- 30 items
- HN profile
- View on Hacker News ↗
About nierman
No profile information was provided.
Recent public activity
-
comment
Comment #32885128
you can also take advantage of transactions: begin; delete from product where id = 123; --verify things are correct with counts, by issuing "selects", etc. and then issue either a …
-
comment
Comment #27558291
I grew up in Washington State and remember eating a lot of Gala, Braeburn, and Fuji apples in that time period; I think those are all pretty good apples to eat "out of hand" (compa…
- comment
- comment
-
comment
Comment #13620038
yes, wal archiving would have helped (archive_command = rsync standby ...), but it's also very easy in postgres 9.4+ to add a replication slot on the master so that wal is kept unt…
-
comment
Comment #12169862
with respect to "Difficulty upgrading to newer releases": pg_upgade has a --link option which uses hard links in the new cluster to reference files from the old cluster. This can b…
-
comment
Comment #11665631
I don't usually eat breakfast, but one of the cereals I really like is Heritage Flakes from Nature's Path: http://us.naturespath.com/product/heritager-flakes I wouldn't consider it…
-
comment
Comment #11507709
yeah, the current/official JDBC driver does not support async listen/notify so you have to do polling. note, the following jdbc driver can do async listen/notify: http://impossibl.…
-
comment
Comment #11507656
the way in which notify/listen interacts with transactions is interesting; from the docs: http://www.postgresql.org/docs/9.5/static/sql-notify.html "... if a NOTIFY is executed ins…
-
comment
Comment #10531332
I'd like to make more use of it but it can't "repack" tables that have gist indices (e.g., postgis spatial indices, etc).
-
comment
Comment #10531308
note: there are also "skip locked" and "nowait" clauses in Postgres 9.5 for more flexibility when dealing with row level locking. This gives you the option of failing immediately (…
-
comment
Comment #9939339
Running more aggressive vacuums that will clean up "old" tuples/tables is good for off-peak times. See Josh Berkus' short three part blog series on postgres' vacuum/freeze: http://…
-
comment
Comment #9703206
MB/s is probably incorrect for the EBS throughput instance limits; those values make more sense if they use Mb/s.
-
comment
Comment #9601799
Check out the Tech and Company pages as well as the slides from the recent South Bay PostgreSQL Meeetup: http://goo.gl/Mtg2W6 The founders both have strong academic and commercial …
-
comment
Comment #9586363
shared_buffers is the setting you're thinking of here. effective_cache_size should be set to a reasonable value of course, but it does not affect the allocated cache size, it's jus…
-
comment
Comment #9578555
Even if the long-running transaction hasn't accessed the job queue table yet it might do so before it completes. Postgres needs to keep the "dead" tuples accessible as long as ther…
-
comment
Comment #9372501
Don't muck with the DNS record. Use an "A record" associated with a secondary/floating IP; then simply move the IP associated with the A record to the new machine and issue a gratu…
-
comment
Comment #9253956
If you are performing a planned failover then the old master can be turned into a slave without extra tools or steps. Simply shut down the master first. As part of this process it …
-
comment
Comment #9236513
what sort of "replication issues"? if you use archive_command and ship/rsync wal files somewhere you will safeguard against falling too far behind (past an arbitrary wal_keep_segme…
-
comment
Comment #7903553
For the best performance you'd want dedicated hardware with a battery-backed RAID array. SSDs can be used for tablespaces with the most frequently accessed data. Note that the AWS …
-
comment
Comment #7903387
But note that the baseline performance for the new General Purpose SSD is listed as the size (in GB) times 3 IOPS (so 3K/3072 IOPS for your 1000GB/1TB example). So large volumes wi…
-
comment
Comment #6684386
If you're taking an instantaneous snapshot of the system then yes. A standard copy/rsync/etc. isn't going to give you that. If the copy takes a long time at what point do you grab …
-
comment
Comment #5042673
you could try PostGIS's spatial indices for a less manual/static approach. spatial indices of the R-tree variety work quite well as long as the dimensionality isn't too high (i.e.,…
-
comment
Comment #4461201
and you probably want to include these indices in any case to enforce that a given (user, movie) pair in the join table is unique (unless you want to track if a rating was changed …
-
comment
Comment #4461176
or you could add an index to the join table and see a similar speedup without the accuracy tradeoff. I'm not saying that the approach doesn't have applications, but it would be muc…