Search Postgresql Archives

Re: suggestion for "psql"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Holger Klawitter wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi there,

I haven't found a way to set the client encoding of a psql connection other then "\encoding" which is arkward for batch processing. As .psqlrc is being ignored during batch processing and the internal encoding is being set *after* "-v", I have to resort to arkward solutions in order to read data via scripts. (To whom it may concern: instead of using "-c" you can pipe your command from stdin).

set client_encoding=MyEncoding;

--
  Richard Huxton
  Archonet Ltd

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux