On Sat, Dec 7, 2013 at 11:41 PM, Fabrízio de Royes Mello <fabriziomello@gmail.com> wrote: > > > On Sat, Dec 7, 2013 at 11:20 PM, Michael Paquier <michael.paquier@gmail.com> wrote: > > > > > > IMHO is more elegant create a procedure to encapsulate the code to avoid > > > redundancy. > > Yep, perhaps something like PQsetClientEncodingIfDifferent or similar > > would make sense. > > > > Well I think at this first moment we can just create a procedure inside the dblink contrib and not touch in libpq. >