Re: insert a backslash into a bytea field? - Mailing list pgsql-admin

From Tim Landscheidt
Subject Re: insert a backslash into a bytea field?
Date
Msg-id m34osegcun.fsf@passepartout.tim-landscheidt.de
Whole thread Raw
In response to insert a backslash into a bytea field?  (Kevin Kempter <kevink@consistentstate.com>)
List pgsql-admin
Kevin Kempter <kevink@consistentstate.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

pgsql-admin by date:

Previous
From: Scott Marlowe
Date:
Subject: Re: XID wraparound in 8.4
Next
From: Alvaro Herrera
Date:
Subject: Re: XID wraparound in 8.4