Re: URGENT: temporary table not recognized?

From: Jasen Betts <jasen(at)xnet(dot)co(dot)nz>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: URGENT: temporary table not recognized?
Date: 2012-02-11 11:24:54
Message-ID: jh5j66$mrl$7@reversiblemaps.ath.cx
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 2012-01-06, Phoenix Kiula <phoenix(dot)kiula(at)gmail(dot)com> wrote:
> On Fri, Jan 6, 2012 at 6:53 PM, Steve Crawford
><scrawford(at)pinpointresearch(dot)com> wrote:

> Thanks Steve.
>
> The file has 350 million lines. Sed, Awk etc are a little painful when
> the file is 18GB witht hat many lines.

On files of that size they're a lot nicer than an interactive editor.

It's not like you need to find space on the disk for an edited copy:

(
echo "copy table_name from stdin other_parameters; "
cat bigfile | sed script_or_scriptfile
echo '\\.'
) | psql connection_parameters

> I'd want Postgresql to ignore the line altogether when something is
> missing. Is this an option we can use, or are rules hoisted on us?

The copy command is optimised and intended for use with data that is
known to be good, or atleast acceptable to the database.

--
⚂⚃ 100% natural

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Andreas Berglund 2012-02-11 16:22:39 ERROR: operator does not exist: integer = character varying
Previous Message Jasen Betts 2012-02-11 10:44:31 Re: Let-bindings in SQL statements