Restoring table with array

Started by BELLON Michelover 24 years ago4 messagesbugs
Jump to latest
#1BELLON Michel
Michel.Bellon@lcie.fr

Hi all,

Restoring a table with the following file

<<restore.txt>>
I obtain the error
ERROR: pg_atoi: error in "{{0.22,0.2,10 ... etc
with INSERT INTO evtransftherm .... etc

+--------------------------------------------------------------+
| version                                                      | 
+--------------------------------------------------------------+
| PostgreSQL 7.1.2 on i686-pc-cygwin, compiled by GCC 2.95.3-4 | 
+--------------------------------------------------------------+

and the same with 7.1.3 on a Mandrake distribution

Help !!!

Michel BELLON
LCIE - Informatique appliquée
33 (0)1 40 95 60 35

Attachments:

restore.txttext/plain; name=restore.txtDownload
#2Stephan Szabo
sszabo@megazone23.bigpanda.com
In reply to: BELLON Michel (#1)
Re: Restoring table with array

On Mon, 8 Oct 2001, BELLON Michel wrote:

Hi all,

Restoring a table with the following file

<<restore.txt>>
I obtain the error
ERROR: pg_atoi: error in "{{0.22,0.2,10 ... etc
with INSERT INTO evtransftherm .... etc

+--------------------------------------------------------------+
| version                                                      | 
+--------------------------------------------------------------+
| PostgreSQL 7.1.2 on i686-pc-cygwin, compiled by GCC 2.95.3-4 | 
+--------------------------------------------------------------+

and the same with 7.1.3 on a Mandrake distribution

Can you send a complete example? The given one inherits from
a non-existant table. Did you perhaps change etalverif at all?

#3BELLON Michel
Michel.Bellon@lcie.fr
In reply to: Stephan Szabo (#2)
Re: Restoring table with array

Sorry
<<etalverif.txt>>

Michel BELLON
LCIE - Informatique appliquée
33 (0)1 40 95 60 35

Show quoted text

-----Message d'origine-----
De: Stephan Szabo [SMTP:sszabo@megazone23.bigpanda.com]
Date: lundi 8 octobre 2001 18:15
À: BELLON Michel
Cc: pgsql-bugs@postgresql.org
Objet: Re: [BUGS] Restoring table with array

On Mon, 8 Oct 2001, BELLON Michel wrote:

Hi all,

Restoring a table with the following file

<<restore.txt>>
I obtain the error
ERROR: pg_atoi: error in "{{0.22,0.2,10 ... etc
with INSERT INTO evtransftherm .... etc

+--------------------------------------------------------------+
| version                                                      | 
+--------------------------------------------------------------+
| PostgreSQL 7.1.2 on i686-pc-cygwin, compiled by GCC 2.95.3-4 | 
+--------------------------------------------------------------+

and the same with 7.1.3 on a Mandrake distribution

Can you send a complete example? The given one inherits from
a non-existant table. Did you perhaps change etalverif at all?

Attachments:

etalverif.txttext/plain; name=etalverif.txtDownload
#4Tom Lane
tgl@sss.pgh.pa.us
In reply to: BELLON Michel (#1)
Re: Restoring table with array

BELLON Michel <Michel.Bellon@lcie.fr> writes:

I obtain the error
ERROR: pg_atoi: error in "{{0.22,0.2,10 ... etc
with INSERT INTO evtransftherm .... etc

It's impossible to reproduce this problem with your given example,
since you didn't provide the definition of the parent table etalverif.

However, I'm guessing that your problem may arise from having done
ALTER TABLE ADD COLUMN on the parent at some time in the past, leading
to an inconsistency in the column ordering of the child --- dropping and
recreating the child will mean it has a different column ordering than
before. Unfortunately pg_dump is not very smart about this situation.
AFAIK the only way to produce a reloadable dump in this case is to use
pg_dump -D (dump data as INSERTs with fully specified column names).

regards, tom lane