Re: BUG #15000: Cache lookup failure

Поиск
Список
Период
Сортировка
От Thomas Kellerer
Тема Re: BUG #15000: Cache lookup failure
Дата
Msg-id f87ba316-781b-52e2-d7d0-5bc77c26b24b@kellerer.eu
обсуждение исходный текст
Ответ на Re: BUG #15000: Cache lookup failure  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
Tom Lane schrieb am 08.01.2018 um 17:04:
>> There was a left over pipe symbol in the script that we didn't see:
> 
>>    pg_dump --table=l10n --table=l10n_value --clean ${db_stag} |
>>    psql --single-transaction --dbname=${db_prod} --file=${backup_stag}
> 
>> So pg_dump pipes a script with DROP statement into psql, which then
>> runs essentially the same script again which was created in a previous step (also with --clean)
> 
> Hm, but if psql is restoring into a different database than pg_dump
> is dumping from, I don't see how they'd interact?

Yes, put psql is running the restore script (created with --clean) *twice*:
once because of the pipe and a second time because of the --file argument


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

Предыдущее
От: "Todd A. Cook"
Дата:
Сообщение: Re: BUG #14932: SELECT DISTINCT val FROM table gets stuck in aninfinite loop
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: BUG #14983: ERROR: duplicate key value violates uniqueconstraint "oid_tbl_oid_key"