Re: Automatic export - Mailing list pgsql-novice

From Daniel T. Staal
Subject Re: Automatic export
Date
Msg-id 51752.63.172.115.138.1153942021.squirrel@MageHandbook.com
Whole thread Raw
In response to Automatic export  ("Keith Worthington" <keithw@narrowpathinc.com>)
Responses Re: Automatic export  (Michael Fuhr <mike@fuhr.org>)
List pgsql-novice
On Wed, July 26, 2006 3:17 pm, Keith Worthington said:
> Hi All,
>
> I need to export several records of a single colum from a table in a
> database everytime that table is updated.  The data needs to end up in a
> text file. Can someone give me an idea on where to get started?  URL's to
> relevant documentation would be appreciated.  TIA

I'd start here:
http://www.postgresql.org/docs/8.1/interactive/triggers.html

Write a trigger on insert/update on that table, and have it export the
records.

Daniel T. Staal

---------------------------------------------------------------
This email copyright the author.  Unless otherwise noted, you
are expressly allowed to retransmit, quote, or otherwise use
the contents for non-commercial purposes.  This copyright will
expire 5 years after the author's death, or in 30 years,
whichever is longer, unless such a period is in excess of
local copyright law.
---------------------------------------------------------------


pgsql-novice by date:

Previous
From: "Keith Worthington"
Date:
Subject: Automatic export
Next
From: Michael Fuhr
Date:
Subject: Re: Automatic export