copy limited number of records

From: "Johnson, Shaunn" <SJohnson6(at)bcbsm(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: copy limited number of records
Date: 2002-11-04 15:02:02
Message-ID: 73309C2FDD95D11192E60008C7B1D5BB04C74173@snt452.corp.bcbsm.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Howdy:

Running PostgreSQL 7.2.1 on RedHat Linux 7.2.

I'm using copy to create a bunch of flat files with delimiters
and it's going okay. I've been asked, however, that the clients
don't actually want ALL of the data in the table; perhaps about
100 or so records for testing.

Is there a way to use limit while using the \copy command?
(e.g., \copy t_test_tbl to '/usr/local/home/admin/dev_tbls' using delimiters
',' limit 10)

I know the above doesn't work, but, perhaps there is a work around?

Thanks!

-X

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Lee Kindness 2002-11-04 15:22:16 copy limited number of records
Previous Message Robert John Shepherd 2002-11-04 11:33:53 Re: ODBC: Could not send Query to backend; Socket has been closed