Re: COPY and read-only transactions

Поиск
Список
Период
Сортировка
От Martijn van Oosterhout
Тема Re: COPY and read-only transactions
Дата
Msg-id 20060330143020.GB16142@svana.org
обсуждение исходный текст
Ответ на COPY and read-only transactions  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
On Thu, Mar 30, 2006 at 02:20:04PM +0200, Peter Eisentraut wrote:
> I probably made the original mistake in the code, so I refrain from claiming
> to know anything about Boolean logic, but this note in the release notes
> doesn't seem right:
>
>   Fix the sense of the test for read-only transaction in COPY
>   The code formerly prohibited COPY TO, where it should prohibit COPY FROM.

COPY FROM STDIN   is copying FROM the user TO the database
COPY TO STDIN     is copying TO the user FROM the database

Does that help?

--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: COPY and read-only transactions
Следующее
От: Tom Lane
Дата:
Сообщение: Re: control pg_hba.conf via SQL