Re: fetch_search_path() and elog.c

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: fetch_search_path() and elog.c
Дата
Msg-id 20050711170437.GB21315@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: fetch_search_path() and elog.c  (Ferruccio Zamuner <nonsolosoft@diff.org>)
Список 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)


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: 4 pgcrypto regressions failures - 1 unsolved
Следующее
От: "Joshua D. Drake"
Дата:
Сообщение: Possible better pg_ctl start/stop handling?