From: | Richard Huxton <dev(at)archonet(dot)com> |
---|---|
To: | Terrence Brannon <metaperl(at)urth(dot)org> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: suggestions for tracking down syntax errors? |
Date: | 2003-10-09 12:51:39 |
Message-ID: | 200310091351.39048.dev@archonet.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Thursday 09 October 2003 13:15, Terrence Brannon wrote:
> I created a schema and piped it to psql but got an error message:
>
> ~/hacks/psql $ cat create.sql | psql test
> ERROR: table "country" does not exist
> ERROR: parser: parse error at or near ")" at character 91
> ERROR: table "customer" does not exist
> NOTICE: CREATE TABLE will create implicit sequence
> 'customer_customer_id_seq' for SERIAL column 'customer.customer_id'
>
> But I don't know exactly where character 91 is... a line number
> (including the comments in the file) would be more useful to me.
Try psql -f create.sql, or in psql \i create.sql - both should give you line
numbers.
Also, try not to post a new question by replying to an existing one. It can
make it difficult for people to notice your question.
--
Richard Huxton
Archonet Ltd
From | Date | Subject | |
---|---|---|---|
Next Message | Gordon Luk | 2003-10-09 13:04:59 | Re: Does postgresql support HKSCS ? |
Previous Message | Terrence Brannon | 2003-10-09 12:50:48 | relation vs table... |