From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
Cc: | Oliver Elphick <olly(at)lfix(dot)co(dot)uk>, PostgreSQL hackers list <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: initdb failure (was Re: [GENERAL] sequence's plpgsql) |
Date: | 2003-09-27 16:34:54 |
Message-ID: | 200309271634.h8RGYs310644@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers pgsql-jdbc |
Peter Eisentraut wrote:
> Oliver Elphick writes:
>
> > + <para>
> > + With a large dump, it may be difficult to identify where any errors are
> > + occurring. You may use the -e option to psql to print the SQL commands
> > + as they are run, so that it is easy to see precisely which commands are
> > + causing errors.
> > </para>
>
> That is just not true. If you use -f, it will tell you the line number of
> the command causing the error. Add the line number of the COPY error
> message, there you have it.
You are assuming it is easy to find what is on a specific line of the
dump file. I am not sure that is always easy for people with limited
Unix skills, or MSWin folks. I am not sure I would have thought to add
the file offset to find the problem COPY line. I guess I would have
eventually, but it wouldn't have been my first idea, and I might _not_
have used -f on the load, and if the load took an hour, I would have to
run it again to get that line number.
I can see the point that the table name is only really valuable when you
are loading a dump, and not valuabvle when you are just doing a copy.
However, copy is used enought in dumps that the exta word (the table
name) doesn't see to hurt.
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2003-09-27 16:38:40 | Re: Schema backup - SOLVED |
Previous Message | Bruce Momjian | 2003-09-27 16:29:47 | Re: initdb failure (was Re: [GENERAL] sequence's plpgsql) |
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2003-09-27 17:00:59 | Re: initdb failure (was Re: [GENERAL] sequence's plpgsql) |
Previous Message | Richard Huxton | 2003-09-27 16:34:52 | Re: 2-phase commit |
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2003-09-27 16:53:01 | Re: Statement.cancel() may cancel queries in the future |
Previous Message | Bruce Momjian | 2003-09-27 16:29:47 | Re: initdb failure (was Re: [GENERAL] sequence's plpgsql) |