pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Writing to a flat file using procedures
2+ messages / 2 participants
[nested] [flat]

* Writing to a flat file using procedures
@ 2006-02-11 05:18  Nalin Bakshi <nbakshi@bisil.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Nalin Bakshi @ 2006-02-11 05:18 UTC (permalink / raw)
  To: pgsql-admin

Hi!
    My project requires me to fetch some data from a a table and write it into a flat file. How can I do this. Could you help?
regards,
Nalin.

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Writing to a flat file using procedures
@ 2006-02-12 00:10  Jim C. Nasby <jnasby@pervasive.com>
  parent: Nalin Bakshi <nbakshi@bisil.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Jim C. Nasby @ 2006-02-12 00:10 UTC (permalink / raw)
  To: Nalin Bakshi <nbakshi@bisil.com>; +Cc: pgsql-admin

On Sat, Feb 11, 2006 at 10:48:08AM +0530, Nalin Bakshi wrote:
> Hi!
>     My project requires me to fetch some data from a a table and write it into a flat file. How can I do this. Could you help?
> regards,

http://www.postgresql.org/docs/8.1/interactive/sql-copy.html
See also \copy on
http://www.postgresql.org/docs/8.1/interactive/app-psql.html , which
removes the need for the file to be writable by the back-end.
-- 
Jim C. Nasby, Sr. Engineering Consultant      jnasby@pervasive.com
Pervasive Software      http://pervasive.com    work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf       cell: 512-569-9461



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2006-02-12 00:10 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-02-11 05:18 Writing to a flat file using procedures Nalin Bakshi <nbakshi@bisil.com>
2006-02-12 00:10 ` Jim C. Nasby <jnasby@pervasive.com>

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