Re: InitPostgres and flatfiles question

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: InitPostgres and flatfiles question
Дата
Msg-id 200701050407.l0547DH19721@momjian.us
обсуждение исходный текст
Ответ на Re: InitPostgres and flatfiles question  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: InitPostgres and flatfiles question  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Tom Lane wrote:
> Bruce Momjian <bruce@momjian.us> writes:
> > What value is allowing multiple queries via PQexec()
> 
> The only argument I can think of is that it allows applications to be
> sloppy about parsing a SQL script into individual commands before they
> send it.  (I think initdb may be guilty of exactly that BTW...)  At the
> same time you could argue that such sloppiness is inherently a Bad Idea.

I thought the idea was that psql was going to split multiple -c commands
into separate PQexec() calls, so sloppy was OK, and if they want a
single transaction, add BEGIN/END to the string.

--  Bruce Momjian   bruce@momjian.us EnterpriseDB    http://www.enterprisedb.com
 + If your life is a hard drive, Christ can be your backup. +


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

Предыдущее
От: Gavin Sherry
Дата:
Сообщение: Re: ideas for auto-processing patches
Следующее
От: Tom Lane
Дата:
Сообщение: Re: InitPostgres and flatfiles question