pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Brian Sherwood <bdsher@gmail.com>
To: pgsql-sql@postgresql.org
Subject: loading a file into a field
Date: Thu, 31 Dec 2009 11:23:26 -0500
Message-ID: <df8d2df50912310823p1d2e3fdu6496571484360be1@mail.gmail.com> (raw)

I am looking to play around with the postgres XML functions, but can't
seem to find a way to load my data.

I have a number of XML files: file1.xml, file2.xml, etc....  All files
follow the same xml format (DTD?)

I would like to create the following table:

CREATE TABLE configs  (
        filename        varchar(80) PRIMARY KEY,
        config  xml
);


and load each file into the xml field, but can't seem to find a way.
(I think I need something similiar to lo_import, but have not found anything)

Any help is appreciated.

Thanks



view thread (2+ messages)  latest in thread

Message-ID: <df8d2df50912310823p1d2e3fdu6496571484360be1@mail.gmail.com>
Permalink:  ../df8d2df50912310823p1d2e3fdu6496571484360be1@mail.gmail.com/
Also on:    postgresql.org/message-id/df8d2df50912310823p1d2e3fdu6496571484360be1@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: bdsher@gmail.com
  Subject: Re: loading a file into a field
  In-Reply-To: <df8d2df50912310823p1d2e3fdu6496571484360be1@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox