question about \encoding option of psql

Поиск
Список
Период
Сортировка
От Xiaobo Gu
Тема question about \encoding option of psql
Дата
Msg-id CACOCgcmf2=3H-Uf37KVM1KVBpx1sY8SaXhu8j+GSO4=c+Vcp0g@mail.gmail.com
обсуждение исходный текст
Ответы Re: question about \encoding option of psql
Re: question about \encoding option of psql
Список pgsql-general
Hi,

I know \encoding is a meta command to set client encoding on psql
prompt, but how can I set it inside the psql command line which will
be called inside shell scripts,

psql -h 192.168.72.7 -U gpadmin -w -d miner_demo -c"\copy demo.store
to 'd:\store.csv' with csv header"


How can I set the encoding for the export csv file?

Regards,

Xiaobo Gu

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

Предыдущее
От: Mike Christensen
Дата:
Сообщение: Re: Correct syntax to create partial index on a boolean column
Следующее
От: John R Pierce
Дата:
Сообщение: Re: question about \encoding option of psql