Unexpected behaviour of encode() - Mailing list pgsql-general

From Bill Moran
Subject Unexpected behaviour of encode()
Date
Msg-id 20130326134730.c82b3402d8443fa7006295b2@potentialtech.com
Whole thread Raw
Responses Re: Unexpected behaviour of encode()
List pgsql-general
psql -U postgres
psql (9.2.3)
Type "help" for help.

postgres=# select encode('can''t', 'escape');
 encode
--------
 can't
(1 row)

I observed the same behaviour on one of our older systems (8.3.11) as well.

Am I missing something?  I expected "can''t" as the output.

--
Bill Moran
http://www.potentialtech.com
http://people.collaborativefusion.com/~wmoran/


pgsql-general by date:

Previous
From: Alban Hertroys
Date:
Subject: Re: Why does Postgres allow duplicate (FK) constraints
Next
From: Merlin Moncure
Date:
Subject: Re: Unexpected behaviour of encode()