pgsql: pg_dump: Fix dumping of WITH OIDS tables

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема pgsql: pg_dump: Fix dumping of WITH OIDS tables
Дата
Msg-id E1gMUSn-0004BJ-IB@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
pg_dump: Fix dumping of WITH OIDS tables

A table with OIDs that was the first in the dump output would not get
dumped with OIDs enabled.  Fix that.

The reason was that the currWithOids flag was declared to be bool but
actually also takes a -1 value for "don't know yet".  But under
stdbool.h semantics, that is coerced to true, so the required SET
default_with_oids command is not output again.  Change the variable
type to char to fix that.

Reported-by: Derek Nelson <derek@pipelinedb.com>

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/6178f3cb798f2ea9011c55e99973f838719c550e

Modified Files
--------------
src/bin/pg_dump/pg_backup_archiver.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)


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

Предыдущее
От: Thomas Munro
Дата:
Сообщение: pgsql: Fix const correctness warning.
Следующее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: doc: Fix minor whitespace issue