Re: Graphics

From: "Daniel Verite" <daniel(at)manitou-mail(dot)org>
To: "Bob Pawley" <rjpawley(at)shaw(dot)ca>
Cc: "PostgreSQL" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Graphics
Date: 2008-01-21 21:37:32
Message-ID: fbce0669-fcad-422a-bfca-00a918d13ea2@mm
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Bob Pawley wrote:

> I use graphics in the application I am writing with PostgreSQL as the

> database.
>
> I am storing the graphics in a file separate from Postgres and
accessing
> them using lo_import.
>
> Is there any method of incorporating the graphics into PostgreSQL so
that
> they become part of the database on pg_dump????

For older versions of pg_dump (pre-8.1 I think) the -b flag was needed.
Recent versions include large objects by default when you're dumping an
entire database, as opposed to a selection of objects.

Also in the dump file it produces, there should be "SELECT
lo_open(lo_create(..." commands, that's how the large objects are
populated.

If not, what version of pg_dump and what command-line options are you
using?

--
Daniel
PostgreSQL-powered mail user agent and storage:
http://www.manitou-mail.org

In response to

  • Graphics at 2008-01-21 18:57:08 from Bob Pawley

Browse pgsql-general by date

  From Date Subject
Next Message Stephen Frost 2008-01-21 22:12:45 Re: US Military / Government Approval
Previous Message Reece Hart 2008-01-21 21:20:58 Re: (un)grouping question