| От | Tom Lane |
|---|---|
| Тема | Re: COPY and read-only transactions |
| Дата | |
| Msg-id | 14395.1143728966@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | COPY and read-only transactions (Peter Eisentraut <peter_e@gmx.net>) |
| Список | pgsql-hackers |
Peter Eisentraut <peter_e@gmx.net> writes:
> 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.
No, it's correct --- the directions are COPY table TO file or COPY table
FROM file. The FROM case is therefore the one that changes the database.
I've always found that directionality nonintuitive, but it's surely far
too late to reverse the sense.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера