From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Greg Stark <gsstark(at)mit(dot)edu> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Max number of rows in a table |
Date: | 2003-12-01 17:41:04 |
Message-ID: | 23631.1070300464@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Greg Stark <gsstark(at)mit(dot)edu> writes:
> Stephan Szabo <sszabo(at)megazone(dot)bigpanda(dot)com> writes:
>> I'd expect copy to be a single command, no matter how many rows were
>> copied.
> It might prevent you from using pg_dump --inserts ?
Not even that, unless you *also* modified the dump output to wrap
BEGIN/END around it. Otherwise each INSERT is a separate xid.
(Of course you could definitely take a pretty long coffee break while
waiting for a 4-billion-row table to be restored with INSERTs. Also
I think it would be necessary to run VACUUM partway through to avoid
transaction wraparound issues. pg_autovacuum could be expected to
take care of that for you, if it were running. But in practice anyone
sane would use COPY for this, anyway.)
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Tilo Schwarz | 2003-12-01 17:56:46 | Re: initdb should create a warning message [was Re: |
Previous Message | Oliver Elphick | 2003-12-01 17:26:35 | Re: initdb should create a warning message [was Re: |