| От | Andrew Sullivan |
|---|---|
| Тема | Re: Alternative to psql -c ? |
| Дата | |
| Msg-id | 20140625142453.GB49452@crankycanuck.ca обсуждение |
| Ответ на | Re: Alternative to psql -c ? (James Le Cuirot <chewi@aura-online.co.uk>) |
| Ответы |
Re: Alternative to psql -c ?
|
| Список | pgsql-general |
On Wed, Jun 25, 2014 at 03:16:19PM +0100, James Le Cuirot wrote: > Same problem as stdin, the transactional behaviour is different. There > is the --single-transaction option but as the man page says... > > "If the script itself uses BEGIN, COMMIT, or ROLLBACK, this option will > not have the desired effects." Hmm. I've _used_ transactions in such files, I'm pretty sure. You don't need the --single-transaction setting for this, just do the BEGIN; and COMMIT; yourself. A -- Andrew Sullivan ajs@crankycanuck.ca
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера