Re: Separate psql commands from arguments - Mailing list pgsql-hackers

From Gregory Stark
Subject Re: Separate psql commands from arguments
Date
Msg-id 87lk3khfy7.fsf@oxford.xeocode.com
Whole thread Raw
In response to Re: Separate psql commands from arguments  (Bernd Helmle <mailings@oopsware.de>)
List pgsql-hackers
"Bernd Helmle" <mailings@oopsware.de> writes:

>> What happens to aliases when you change the encoding in the middle of
>> running one? Actually, come to think of it, what *does* happen to aliases
>> when the encoding changes??
>
> Hmm? What happens if you are going to change your encoding within multiple
> backslash commands now?

I mean. What happens if I do:

\encoding 'UTF8'
\alias foo select 'あ' from tab;
\encoding euc-jp
\foo

What encoding is the alias itself stored in? Do we have to worry about
converting it when you switch client-encodings?

--  Gregory Stark EnterpriseDB          http://www.enterprisedb.com Ask me about EnterpriseDB's RemoteDBA services!


pgsql-hackers by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: question on how to correctly communicate with external library functions which return malloc()'ed strings
Next
From: Hannu Krosing
Date:
Subject: Re: Adding pipelining support to set returning functions