Re: pg_upgrade test chatter
| От | Alvaro Herrera |
|---|---|
| Тема | Re: pg_upgrade test chatter |
| Дата | |
| Msg-id | 202110200155.jeev2mn6o6sy@alvherre.pgsql обсуждение исходный текст |
| Ответ на | Re: pg_upgrade test chatter (Tom Lane <tgl@sss.pgh.pa.us>) |
| Ответы |
Re: pg_upgrade test chatter
|
| Список | pgsql-hackers |
On 2021-Oct-19, Tom Lane wrote: > I tried doing this as a one-liner change in pg_regress's > drop_database_if_exists(), but the idea fell over pretty > quickly, because what underlies that is a "psql -c" call: > > $ psql -c 'set client_min_messages = warning; drop database if exists foo' > ERROR: DROP DATABASE cannot run inside a transaction block > > We could dodge that, with modern versions of psql, by issuing > two -c switches. Isn't it easier to pass client_min_messages via PGOPTIONS? PGOPTIONS="-c client_min_messages=warning" psql -c "drop database if exists foo" -- Álvaro Herrera 39°49'30"S 73°17'W — https://www.EnterpriseDB.com/
В списке pgsql-hackers по дате отправления: