Re: [HACKERS] ASYNC Privileges proposal

2013-05-19 Thread Chris Farmiloe
In fairness NOTIFY has only had a payload since v9 (maybe 8.4?), and the issue of trust is mainly tied to data leaking from the payload, so I suspect I won't be last person to request this as people re-visit NOTIFY :) ...but I totally get your point of course. My first thought was also that having

Re: [HACKERS] ASYNC Privileges proposal

2013-05-19 Thread Tom Lane
Chris Farmiloe writes: > I find the current LISTEN / NOTIFY rather limited in the context of > databases with multiple roles. As it stands it is not possible to restrict > the use of LISTEN or NOTIFY to specific roles, and therefore notifications > (and their payloads) cannot really be trusted as

[HACKERS] ASYNC Privileges proposal

2013-05-19 Thread Chris Farmiloe
Hey all, I find the current LISTEN / NOTIFY rather limited in the context of databases with multiple roles. As it stands it is not possible to restrict the use of LISTEN or NOTIFY to specific roles, and therefore notifications (and their payloads) cannot really be trusted as coming from any partic

Re: [HACKERS] psql \watch versus \timing

2013-05-19 Thread Tom Lane
Jeff Janes writes: > I'd like to run same query repeatedly and see how long it takes each time. > I thought \watch would be excellent for this, but it turns out that using > \watch suppresses the output of \timing. > Is this intentional, or unavoidable? \watch uses PSQLexec not SendQuery; the la

[HACKERS] psql \watch versus \timing

2013-05-19 Thread Jeff Janes
I'd like to run same query repeatedly and see how long it takes each time. I thought \watch would be excellent for this, but it turns out that using \watch suppresses the output of \timing. Is this intentional, or unavoidable? Also, is it just or does the inability to watch more frequently than

Re: [HACKERS] Parallel Sort

2013-05-19 Thread Hitoshi Harada
On Wed, May 15, 2013 at 11:11 AM, Noah Misch wrote: > On Wed, May 15, 2013 at 08:12:34AM +0900, Michael Paquier wrote: > > The concept of clause parallelism for backend worker is close to the > > concept of clause shippability introduced in Postgres-XC. In the case of > > XC, the equivalent of th

Re: [HACKERS] Assertion failure when promoting node by deleting recovery.conf and restart node

2013-05-19 Thread Simon Riggs
On 25 March 2013 19:14, Heikki Linnakangas wrote: > On 15.03.2013 04:25, Michael Paquier wrote: >> >> Hi, >> >> When trying to *promote* a slave as master by removing recovery.conf and >> restarting node, I found an assertion failure on master branch: >> LOG: database system was shut down in reco

Re: [HACKERS] Fast promotion failure

2013-05-19 Thread Simon Riggs
On 7 May 2013 10:57, Heikki Linnakangas wrote: > While testing the bug from the "Assertion failure at standby promotion", I > bumped into a different bug in fast promotion. When the first checkpoint > after fast promotion is performed, there is no guarantee that the > checkpointer process is runni

Re: [HACKERS] fast promotion and log_checkpoints

2013-05-19 Thread Simon Riggs
On 1 May 2013 10:05, Fujii Masao wrote: > In HEAD, when the standby is promoted, recovery requests the checkpoint > but doesn't wait for its completion. I found the checkpoint starting log > message > of this checkpoint looks odd as follows: > > LOG: checkpoint starting: > > I think somethi

[HACKERS] Block write statistics WIP

2013-05-19 Thread Greg Smith
I have some time now for working on the mystery of why there are no block write statistics in the database. I hacked out the statistics collection and reporting side already, rough patch attached if you want to see the boring parts. I guessed that there had to be a gotcha behind why this wasn