Re: How to insert into pg_largeobject?

From: "Sean Davis" <sdavis2(at)mail(dot)nih(dot)gov>
To: "Ognjen Blagojevic" <ognjen(at)etf(dot)bg(dot)ac(dot)yu>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: How to insert into pg_largeobject?
Date: 2008-09-04 11:56:35
Message-ID: 264855a00809040456l44dd5622m3d95e4bbc5df67ff@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On Thu, Sep 4, 2008 at 4:25 AM, Ognjen Blagojevic <ognjen(at)etf(dot)bg(dot)ac(dot)yu> wrote:
> Hi,
>
> How can I insert data into pg_largeobject?
>
> When I try:
>
> INSERT INTO pg_catalog.pg_largeobject(loid, pageno, data) VALUES (4, 1,
> '\\001\\002\\003\\004');

This isn't meant to be used like this, I don't think. You'll want to
use the large object interface:

http://www.postgresql.org/docs/8.3/static/lo-funcs.html

Sean

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Yogesh Sharma 2008-09-05 04:59:26 Re: Opinion from experts
Previous Message Ognjen Blagojevic 2008-09-04 08:25:36 How to insert into pg_largeobject?