pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
psql won't accept pg_dump
3+ messages / 2 participants
[nested] [flat]

* psql won't accept pg_dump
@ 2004-11-08 19:28 Michael Hipp <Michael@Hipp.com>
  2004-11-08 20:11 ` Re: psql won't accept pg_dump Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 3+ messages in thread

From: Michael Hipp @ 2004-11-08 19:28 UTC (permalink / raw)
  To: pgsql-admin

Here's what I do:

pg_dump testdb > test.psql
dropdb testdb
createdb testdb
psql -f test.psql testdb

But there are 2 things where it won't accept it's own output as input.

######### CASE #1
psql:test.psql:18: ERROR:  unrecognized configuration parameter 
"default_with_oids"

######### CASE #2
psql:test.psql:42: ERROR:  invalid input syntax for type timestamp: 
"2004-10-30
21:11:00  501   so3   Test Sat morning  CMH   2004-10-30 11:11:43.25 
michael  unknown"
CONTEXT:  COPY dailylog, line 1, column enttime: "2004-10-30 21:11:00 
501   so3
    Test Sat morning  CMH   2004-10-30 11:11:43.25  michael  unknown"

(Note that if I change the 21:11:00 to 11:11:00 it works fine. It 
appears to be only wanting input in 12-hour format.)

######### Snippets from the test.psql file:

SET default_with_oids = true;

CREATE TABLE dailylog (
     enttime timestamp without time zone,
     unit_calling character varying(8),
     unit_called character varying(8),
     info character varying(500),
     oper character varying(4),
     sys_time timestamp without time zone,
     station character varying(32),
     stauser character varying(32)
);

COPY dailylog (enttime, unit_calling, unit_called, info, oper, sys_time, 
station, stauser) FROM stdin;
2004-10-30 21:11:00  501   so3   Test Sat morning  CMH   2004-10-30 
11:11:43.25  michael  unknown

This is POstgreSQL 7.4.5 on Cygwin. Any help?

Thank you,
Michael Hipp
Hipp & Associates



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: psql won't accept pg_dump
  2004-11-08 19:28 psql won't accept pg_dump Michael Hipp <Michael@Hipp.com>
@ 2004-11-08 20:11 ` Tom Lane <tgl@sss.pgh.pa.us>
  2004-11-08 21:37   ` Re: psql won't accept pg_dump Michael Hipp <Michael@Hipp.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Tom Lane @ 2004-11-08 20:11 UTC (permalink / raw)
  To: Michael Hipp <Michael@Hipp.com>; +Cc: pgsql-admin

Michael Hipp <Michael@Hipp.com> writes:
> ######### CASE #1
> psql:test.psql:18: ERROR:  unrecognized configuration parameter 
> "default_with_oids"

Apparently you're trying to use an 8.0 pg_dump with a 7.4 backend.

> ######### CASE #2
> psql:test.psql:42: ERROR:  invalid input syntax for type timestamp: 
> "2004-10-30
> 21:11:00  501   so3   Test Sat morning  CMH   2004-10-30 11:11:43.25 
> michael  unknown"
> CONTEXT:  COPY dailylog, line 1, column enttime: "2004-10-30 21:11:00 
> 501   so3
>     Test Sat morning  CMH   2004-10-30 11:11:43.25  michael  unknown"

This looks to me like something has changed the tab separators between
columns into spaces.

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: psql won't accept pg_dump
  2004-11-08 19:28 psql won't accept pg_dump Michael Hipp <Michael@Hipp.com>
  2004-11-08 20:11 ` Re: psql won't accept pg_dump Tom Lane <tgl@sss.pgh.pa.us>
@ 2004-11-08 21:37   ` Michael Hipp <Michael@Hipp.com>
  0 siblings, 0 replies; 3+ messages in thread

From: Michael Hipp @ 2004-11-08 21:37 UTC (permalink / raw)
  To: ; +Cc: pgsql-admin

Tom Lane wrote:

> Michael Hipp <Michael@Hipp.com> writes:
> 
>>######### CASE #1
>>psql:test.psql:18: ERROR:  unrecognized configuration parameter 
>>"default_with_oids"
> 
> Apparently you're trying to use an 8.0 pg_dump with a 7.4 backend.
> 
> 
>>######### CASE #2
>>psql:test.psql:42: ERROR:  invalid input syntax for type timestamp: 
>>"2004-10-30
>>21:11:00  501   so3   Test Sat morning  CMH   2004-10-30 11:11:43.25 
>>michael  unknown"
>>CONTEXT:  COPY dailylog, line 1, column enttime: "2004-10-30 21:11:00 
>>501   so3
>>    Test Sat morning  CMH   2004-10-30 11:11:43.25  michael  unknown"
> 
> This looks to me like something has changed the tab separators between
> columns into spaces.
> 
> 			regards, tom lane

You were right on both counts. Thank you!

Michael




^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2004-11-08 21:37 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-11-08 19:28 psql won't accept pg_dump Michael Hipp <Michael@Hipp.com>
2004-11-08 20:11 ` Tom Lane <tgl@sss.pgh.pa.us>
2004-11-08 21:37   ` Michael Hipp <Michael@Hipp.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox