From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | "Ovidiu Tanasiciuc" <tanasiciuc(at)yahoo(dot)com> |
Cc: | pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: BUG #5494: pg_dump dependiences sequence problem |
Date: | 2010-06-08 15:45:46 |
Message-ID: | 5650.1276011946@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
"Ovidiu Tanasiciuc" <tanasiciuc(at)yahoo(dot)com> writes:
> I have 2 tables a and b
> a have column id - bigserial
> b have column Id - bigserial with I uppercase
> both automatic have 2 sequences
> the problem is then i make pg_dump with data only and insert command,even
> like or from pgadmin
> E:/Programe/PostgreSQL/8.4/bin\pg_dump.exe --host servercnp --port 5432
> --username postgres --format plain --data-only --column-inserts --verbose
> --file "C:\Users\ovidiu\Desktop\x.sql" --table public.a secretariat
> the table a.sql file have the line
> SELECT pg_catalog.setval('a_id_seq', 4392, false);
> but the tabel b doesn't have this line.
Are you looking carefully? It would actually look like
SELECT pg_catalog.setval('"b_Id_seq"', something, false);
Another likely theory is that you didn't actually make the column "Id"
as a serial, but tried to attach a sequence to it manually. In that
case I'd guess you forgot the ALTER SEQUENCE OWNED BY step.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | p.buongiovanni | 2010-06-08 16:17:06 | Re: BUG #5492: Sequence corruption |
Previous Message | Tom Lane | 2010-06-08 15:38:40 | Re: BUG #5493: Character Encoding is not happenning properly |