Re: converting text to bytea

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Yambu <hyambu(at)gmail(dot)com>
Cc: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, pgsql-general <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: converting text to bytea
Date: 2021-02-25 15:01:04
Message-ID: 107948.1614265264@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Yambu <hyambu(at)gmail(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Pavel Stehule 2021-02-25 15:01:14 Re: Deleting takes days, should I add some index?
Previous Message Paul Förster 2021-02-25 14:45:46 PostgreSQL URI