Re: insert a backslash into a bytea field?

From: Tim Landscheidt <tim(at)tim-landscheidt(dot)de>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: insert a backslash into a bytea field?
Date: 2009-08-11 23:17:04
Message-ID: m34osegcun.fsf@passepartout.tim-landscheidt.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Kevin Kempter <kevink(at)consistentstate(dot)com> wrote:

> we want to insert a single backslash into a bytea column (running postgres v
> 8.3.5)

> this works to insert 2 backslashes (but we only want one):
> insert into test_bytea_tab (id, bytea_test_col)
> values(999999, '\\\\testdata'::bytea)
> [...]

This inserts a single backslash. Check
LENGTH(bytea_test_col).

Tim

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Alvaro Herrera 2009-08-12 00:28:55 Re: XID wraparound in 8.4
Previous Message Scott Marlowe 2009-08-11 22:47:25 Re: XID wraparound in 8.4