pg_dump and boolean format

Поиск
Список
Период
Сортировка
От Scott Frankel
Тема pg_dump and boolean format
Дата
Msg-id F73AC05F-61DF-4A8D-BBC8-34575B5112EE@circlesfx.com
обсуждение исходный текст
Ответы Re: pg_dump and boolean format  (Michael Glaesemann <grzm@seespotcode.net>)
Список pgsql-general
Hi all,

Is it possible to control the representation of boolean data in a
pg_dump?

The pg docs say that booleans can be stored as 't', 'true', 'y',
'yes', or '1'.  My db is storing them as 't' and pg_dump is outputing
them as 'true'.  Can I coerce pg_dump to output 't' as 1?

I'm using pg_dump to create an SQL script for importing into another
database.  This will happen automatically and repeatedly.
Unfortunately, the other database (sqlite) is limited to only integer
representation of booleans:  0 or 1.

I'm currently using the following command:

    pg_dump -aDFp -v mydatabase > mydatabase_BAK.sql


Thanks!
Scott



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

Предыдущее
От: Greg Smith
Дата:
Сообщение: Re: pgtune
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Finding last checkpoint time