AW: [HACKERS] "CANNOT EXTEND" - - Mailing list pgsql-hackers

From Zeugswetter Andreas IZ5
Subject AW: [HACKERS] "CANNOT EXTEND" -
Date
Msg-id 219F68D65015D011A8E000006F8590C60267B325@sdexcsrv1.f000.d0188.sd.spardat.at
Whole thread Raw
List pgsql-hackers
> copy tbl_name to 'file';
> 
> Have any ideas for splitting that?
> 
> 
I was going to answer with the following:

#!/bin/sh
mkfifo tapepipe.$$
( gzip --fast -c < tapepipe.$$ | split -b512m - tbl_name.unl. ) &
psql -c "copy tbl_name to 'tapepipe.$$'" regression 
rm tapepipe.$$

but it does not work, since psql does not like the named pipe. So use:

psql -qc 'copy onek to stdout' regression | gzip --fast -c | split -b512m -
onek.unl.

Andreas


pgsql-hackers by date:

Previous
From: Vadim Mikheev
Date:
Subject: Re: [HACKERS] Re: [BUGS] General Bug Report: Bug in optimizer
Next
From: Terry Mackintosh
Date:
Subject: Re: [ADMIN] delete data