pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #6317: sequence error for pg_dump
2+ messages / 2 participants
[nested] [flat]
* BUG #6317: sequence error for pg_dump
@ 2011-12-02 09:48 hmf@alkheme.com
2011-12-13 20:56 ` Re: BUG #6317: sequence error for pg_dump Robert Haas <robertmhaas@gmail.com>
0 siblings, 1 reply; 2+ messages in thread
From: hmf@alkheme.com @ 2011-12-02 09:48 UTC (permalink / raw)
To: pgsql-bugs
The following bug has been logged on the website:
Bug reference: 6317
Logged by: hua ming fei
Email address: hmf@alkheme.com
PostgreSQL version: 9.0.1
Operating system: Centos 5.5
Description:
use pg_dump when didn't close the application , weird things occured . the
current value of one sequence is more slower than the max number of one
primary key base on the sequence . So, I looked into the dump file , found
command"
SELECT pg_catalog.setval('attrnamemaster_attrnameid_seq', 3009, true);" to
set sequence values number , but the import data, there are many lines with
number larger than the sequence value :
3012 38 2147483647 t 10041 material material
material 1004.10041 4.1 f
3013 38 2147483647 t 10042 disable
1004.10042 4.2 f
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: BUG #6317: sequence error for pg_dump
2011-12-02 09:48 BUG #6317: sequence error for pg_dump hmf@alkheme.com
@ 2011-12-13 20:56 ` Robert Haas <robertmhaas@gmail.com>
0 siblings, 0 replies; 2+ messages in thread
From: Robert Haas @ 2011-12-13 20:56 UTC (permalink / raw)
To: hmf@alkheme.com; +Cc: pgsql-bugs
On Fri, Dec 2, 2011 at 4:48 AM, <hmf@alkheme.com> wrote:
> The following bug has been logged on the website:
>
> Bug reference: 6317
> Logged by: hua ming fei
> Email address: hmf@alkheme.com
> PostgreSQL version: 9.0.1
> Operating system: Centos 5.5
> Description:
>
> use pg_dump when didn't close the application , weird things occured . the
> current value of one sequence is more slower than the max number of one
> primary key base on the sequence . So, I looked into the dump file , found
> command"
> SELECT pg_catalog.setval('attrnamemaster_attrnameid_seq', 3009, true);" to
> set sequence values number , but the import data, there are many lines with
> number larger than the sequence value :
> 3012 38 2147483647 t 10041 material material
> material 1004.10041 4.1 f
> 3013 38 2147483647 t 10042 disable
> 1004.10042 4.2 f
Without a reproducible test case, it's tough to see how anyone's going
to be able to fix any bug that may be lurking here. When you use
vague phrases like "when didn't close the application, weird things
occurred", it's kind of hard to figure out what exactly you did. If
you come up with a specific sequence of steps involving simple tools
like pg_dump and psql that produces a result you think is wrong,
someone here can probably (a) tell you whether the behavior is
intended, and (b) if not, fix it.
--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2011-12-13 20:56 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2011-12-02 09:48 BUG #6317: sequence error for pg_dump hmf@alkheme.com
2011-12-13 20:56 ` Robert Haas <robertmhaas@gmail.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