pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Yambu <hyambu@gmail.com>
Cc: Pavel Stehule <pavel.stehule@gmail.com>
Cc: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: Re: converting text to bytea
Date: Thu, 25 Feb 2021 10:01:04 -0500
Message-ID: <107948.1614265264@sss.pgh.pa.us> (raw)
In-Reply-To: <CALhHtcD-dO9hix26VmUt5x+4yqMHxdxWW2f_2ensxgWv9DyVFg@mail.gmail.com>
References: <CALhHtcCwfxUJvYhopSN9wffSHYyCGbCdZaqjUteP_C6KngX3ig@mail.gmail.com>
	<CAFj8pRAdyZKFqci-nzM6FuSpTFSHN38ynqHA0cuaq+dpzeeAyw@mail.gmail.com>
	<CALhHtcD-dO9hix26VmUt5x+4yqMHxdxWW2f_2ensxgWv9DyVFg@mail.gmail.com>

Yambu <hyambu@gmail.com> writes:
> Is there a reason why i'm getting text when i run the below
> select convert_to('some_text', 'UTF8')    i get back 'some_text'

You must have bytea_output set to "escape".

			regards, tom lane





view thread (7+ messages)  latest in thread

Message-ID: <107948.1614265264@sss.pgh.pa.us>
Permalink:  ../107948.1614265264@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/107948.1614265264@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, hyambu@gmail.com, pavel.stehule@gmail.com
  Subject: Re: converting text to bytea
  In-Reply-To: <107948.1614265264@sss.pgh.pa.us>
  References: <CALhHtcCwfxUJvYhopSN9wffSHYyCGbCdZaqjUteP_C6KngX3ig@mail.gmail.com> <CAFj8pRAdyZKFqci-nzM6FuSpTFSHN38ynqHA0cuaq+dpzeeAyw@mail.gmail.com> <CALhHtcD-dO9hix26VmUt5x+4yqMHxdxWW2f_2ensxgWv9DyVFg@mail.gmail.com> <107948.1614265264@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox