From: | Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org> |
---|---|
To: | Ferruccio Zamuner <nonsolosoft(at)diff(dot)org> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: fetch_search_path() and elog.c |
Date: | 2005-07-11 17:04:37 |
Message-ID: | 20050711170437.GB21315@alvh.no-ip.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Mon, Jul 11, 2005 at 06:22:26PM +0200, Ferruccio Zamuner wrote:
> Now I've found a simpler solution:
>
> case 'S':
> /* estrae il search_path */
> if (namespace_search_path != NULL)
> appendStringInfo(buf, "%s ", namespace_search_path);
> break;
>
> It seems to work.
>
> But I would like to understand why previous code was wrong.
I think it was because you were doing catalog lookups (the
get_namespace_name() function, etc), and these don't work outside a
transaction.
--
Alvaro Herrera (<alvherre[a]alvh.no-ip.org>)
"¿Cómo puedes confiar en algo que pagas y que no ves,
y no confiar en algo que te dan y te lo muestran?" (Germán Poo)
From | Date | Subject | |
---|---|---|---|
Next Message | Joshua D. Drake | 2005-07-11 17:06:43 | Possible better pg_ctl start/stop handling? |
Previous Message | Tom Lane | 2005-07-11 17:00:28 | Re: 4 pgcrypto regressions failures - 1 unsolved |