[GENERAL] full_page_writes on SSD?

2015-11-24 Thread Marcin Mańk
I saw this: http://blog.pgaddict.com/posts/postgresql-on-ssd-4kb-or-8kB-pages It made me wonder: if SSDs have 4kB/8kB sectors, and we'd make the Postgres page size equal to the SSD page size, do we still need full_page_writes? Regards Marcin Mańk

Re: [GENERAL] Unique - first

2013-10-27 Thread Marcin Mańk
ension to the SQL standard): select distinct on(x) x, y, z from the_table order by x, z ​ Regards Marcin Mańk

Re: [GENERAL] pg_xlog size growing untill it fills the partition

2013-10-07 Thread Marcin Mańk
On Thu, Oct 3, 2013 at 11:56 PM, Michal TOMA wrote: > > Now I have: > checkpoint_completion_target = 0.9 > wal_buffers = 8MB > checkpoint_segments = 16 > checkpoint_timeout = 20min > shared_buffers = 2GB > log_checkpoints = on > > This is what I can

Re: [GENERAL] help getting a backtrace from 9.2 on Ubuntu 13.04?

2013-09-09 Thread Marcin Mańk
x27;m having some trouble > getting this done. > Is it crashing on a specific database object? pg_restore -v will tell you how far it went. Then try to restore only that object. Is it perhaps crashing on a specific row? Try producing a self contained test case (like only the culprit table, anonymized). Regards Marcin Mańk

Re: [GENERAL] Longest Common Subsequence in Postgres - Algorithm Challenge

2013-07-08 Thread Marcin Mańk
Dnia 9 lip 2013 o godz. 00:46 Michael Paquier napisał(a): > On Tue, Jul 9, 2013 at 5:04 AM, Robert James wrote: >> On 7/8/13, hubert depesz lubaczewski wrote: >>> On Mon, Jul 08, 2013 at 09:09:26AM -0400, Robert James wrote: I have two relations, where each relation has two fields, one

[GENERAL] make uninstall deletes all manpages?

2013-04-23 Thread Marcin Mańk
I just tried make uninstall. I did: sudo make uninstall which goes: make -C doc uninstall make -C src uninstall make -C sgml uninstall rm -f '/opt/local/share/doc//postgresql/html/'* '/opt/local/share/man'/man1/* '/opt/local/share/man'/man3/* '/opt/local/share/man'/man7/* /bin/sh: /bin/rm: Argume

Re: [GENERAL] Odd corruption issue reported on dba.stackexchange.com, need advice

2012-07-25 Thread Marcin Mańk
inking there. Is this actually needed / not dangerous? Greetings Marcin Mańk -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Odd corruption issue reported on dba.stackexchange.com, need advice

2012-07-25 Thread Marcin Mańk
I privately pointed Martin Pitt (Debian maintainer) to this discussion, his response below. Martin, I believe what happened is: the original complainer did /etc/init.d/postgresql restart this called pg_ctlcluster --force restart this effectively did: pg_ctlcluster --force stop (which removed the p

Re: [GENERAL] Odd corruption issue reported on dba.stackexchange.com, need advice

2012-07-24 Thread Marcin Mańk
On Tue, Jul 24, 2012 at 3:16 AM, Craig Ringer wrote: > It shouldn't matter - only PostgreSQL was restarted, not the whole machine >> - and cleanly at that. Very strange. > > > look at pg_ctlcluster, (which does the restart): if (!fork()) { close STDOUT; exec $pg_

Re: [GENERAL] Transaction question

2012-07-11 Thread Marcin Mańk
On Tue, Jul 10, 2012 at 10:06 PM, Jeff Ross wrote: > 2012-06-19 15:37:36.283752500 LOG: statement: update > survey_response set srv_resp_submitted = now() where srv_resp_srv_id = 2 > and srv_resp_pp_id = 25399 > > jross@wykids localhost# select * from survey_response where > srv_resp_submitted

Re: [GENERAL] Query Optimizer makes a poor choice

2011-12-01 Thread Marcin Mańk
On Tue, Nov 29, 2011 at 7:21 PM, Tyler Hains wrote: > # explain analyze select * from cards where card_set_id=2850 order by > card_id limit 1; >    QUERY PLAN > -

Re: [GENERAL] access to lexems or access to parsed elements

2011-08-26 Thread Marcin Mańk
select (ts_parse('default','the quick brown fox jumped over the lazy fox')).token Greetings Marcin Mańk -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] statement_timeout

2006-11-17 Thread Marcin Mańk
o.) > "alter role set statement_timeout" solves my immediate problem (I did not know about it, thanks guys). Maybe a comment in postgresql.conf, or docs: # note: statement_timeout applies to autovacuum, pg_dump, vacuumdb etc. # If you set it globally, consider "alter role postgres set stat

[GENERAL] statement_timeout

2006-11-16 Thread Marcin Mańk
issue. and vacuumdb. This is all on 8.1.4 . Yeah, system-wide statement_timeout is not much of a brilliant idea :( Pozdrawiam Marcin Mańk ---(end of broadcast)--- TIP 4: Have you searched our list archives? http