Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-admin by date

Next:From: Alvaro HerreraDate: 2009-08-12 00:28:55
Subject: Re: XID wraparound in 8.4
Previous:From: Scott MarloweDate: 2009-08-11 22:47:25
Subject: Re: XID wraparound in 8.4

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group