From: | Tim Spencer <tspencer(at)cloudpassage(dot)com> |
---|---|
To: | Jeff Janes <jeff(dot)janes(at)gmail(dot)com> |
Cc: | "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: how _not_ to log? |
Date: | 2013-07-29 16:37:59 |
Message-ID: | C92E3DEA-AF38-4586-9C47-71FB70631D97@cloudpassage.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Jul 26, 2013, at 11:27 AM, Jeff Janes <jeff(dot)janes(at)gmail(dot)com> wrote:
> That does not look like the entire message. What was before and after
> it in the log?
>
> For example:
>
> ERROR: role "foobar" already exists
> STATEMENT: create role foobar encrypted password 'XXX';
>
> If it were not for the ERROR, the STATEMENT would not be being logged,
> in my hands.
>
Ah yes, that's it:
Jul 29 16:12:39 staging-db11 postgres[28849]: [34-1] ERROR: role "foobar" already exists
Jul 29 16:12:39 staging-db11 postgres[28849]: [34-2] STATEMENT: create role foobar with replication encrypted password 'XXX';
Interesting. I thought I was checking to see if the role existed in the chef recipe, but I guess that's somehow failing and so it's trying to create the role. Somehow I spaced that it was doing a create role here instead of an update until you got me to dig into the log messages more. :-)
I guess I have some work on my end to do to make this work properly. Thanks, all, for your help, and have fun!
-tspencer
From | Date | Subject | |
---|---|---|---|
Next Message | Alban Hertroys | 2013-07-29 17:52:31 | Re: [GENERAL] Incorrect response code after XA recovery |
Previous Message | Raghavendra | 2013-07-29 15:40:38 | Re: how to get UPDATEXML function in postgresql as it works in oracle |