| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | ojeannet(at)slb(dot)com |
| Cc: | pgsql <pgsql-bugs(at)postgresql(dot)org> |
| Subject: | Re: inserting binary in a bytea field |
| Date: | 2000-12-01 18:38:14 |
| Message-ID: | 11201.975695894@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-bugs |
Olivier Jeannet <jeannet(at)montrouge(dot)tt(dot)slb(dot)com> writes:
> Is this normal ?
> Am I supposed to get binary values as escaped ASCII,
Yes. Otherwise you'd have big trouble with, for example, \000.
You can use a binary cursor to read out unconverted data, but that might
be more trouble than it's worth.
There has been talk of designing some access functions similar to the
large-object functionality (lo_read/lo_write, etc) for bytea values.
That would bypass this issue and also allow reading/writing large
values in sections, which'd be awfully nice. Not done yet though.
regards, tom lane
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2000-12-02 20:46:56 | psql doesn't count lines correctly in pg_dump scripts |
| Previous Message | Olivier Jeannet | 2000-12-01 18:21:27 | inserting binary in a bytea field |