Re: syntax error but command executes anyway? - Mailing list pgsql-general

From Kevin Murphy
Subject Re: syntax error but command executes anyway?
Date
Msg-id 200406192306.06613.murphy@genome.chop.edu
Whole thread Raw
In response to Re: syntax error but command executes anyway?  ("Scott Marlowe" <smarlowe@qwest.net>)
List pgsql-general
Scott,

> > egenome_dev=# \i
> > /Users/murphy/cvs/egora/sql/data_port/port_identifiers.sql
> > INSERT 0 1672036
>
> This INSERT 0 part tells you it didn't actually insert anything.

Actually, that's not true.  I didn't know what this number was until just now,
but I looked it up: for a single-row insert, it's the OID of the new row;
otherwise, it's 0.  The 1672036, on the other hand, means that 1,672,036 rows
were inserted.

-Kevin Murphy

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: File System Restore
Next
From: Kevin Murphy
Date:
Subject: Re: syntax error but command executes anyway?