pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedLockReplace: xid table corrupted
7+ messages / 5 participants
[nested] [flat]
* LockReplace: xid table corrupted
@ 2000-12-12 05:55 Dronamraju Rajesh <drajesh80@yahoo.com>
0 siblings, 2 replies; 7+ messages in thread
From: Dronamraju Rajesh @ 2000-12-12 05:55 UTC (permalink / raw)
To: pgsql-admin; pgsql-bugs@postgresql.org
Hi There,
I have production systems running postgres for
24x7x365. But suddenly it stops serving the requests
but the postmaster does not die. I cant do select or
even say pgsql <database-name> until i kill postmaster
clear shared memory segments and restart it again. for
all the forth coming requests it says "sorry, too many
clients already".
My system config :-
os:- Red Hat linux 6.2
memory:- 1GB
cpu:- dual CPU
database:- Postgres 6.5.2 ( pl dont suggest to upgrade
to 7.0.2. once this problem is solved. then i can do
testing of my app with postgres 7.0.2)
command:- postmaster -i -N 256 -B 512
>>/usr/local/pgsql/server.log 2>&1 &
can anybody tell me why this happens and what the
solution is for this ????
Regards
Rajesh
__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: [BUGS] LockReplace: xid table corrupted
@ 2000-12-12 06:08 Tom Lane <tgl@sss.pgh.pa.us>
parent: Dronamraju Rajesh <drajesh80@yahoo.com>
1 sibling, 0 replies; 7+ messages in thread
From: Tom Lane @ 2000-12-12 06:08 UTC (permalink / raw)
To: Dronamraju Rajesh <drajesh80@yahoo.com>; +Cc: pgsql-admin; pgsql-bugs@postgresql.org
Dronamraju Rajesh <drajesh80@yahoo.com> writes:
> database:- Postgres 6.5.2 ( pl dont suggest to upgrade
> to 7.0.2. once this problem is solved. then i can do
> testing of my app with postgres 7.0.2)
If you update to 7.0.3, you'll probably find this problem
goes away. It sounds to me like you are running into a bogus
debug check in the older code that assumed LockRelease should
never need to release more than a thousand locks.
If you don't want to update, try not touching 1000 tables in
the same transaction. I'm guessing you do a lot of large-object
slinging ... otherwise it's not that easy to get to 1000 ...
regards, tom lane
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: [BUGS] LockReplace: xid table corrupted
@ 2000-12-12 06:28 Dronamraju Rajesh <drajesh80@yahoo.com>
0 siblings, 1 reply; 7+ messages in thread
From: Dronamraju Rajesh @ 2000-12-12 06:28 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-admin; pgsql-bugs@postgresql.org
thanks tom....But strange thing is that my database
has only 15 tables totally...which are very small
too...
so how would be the way of me reaching to 1000
tables???
and why do i get an error message "sorry too many
clients" ???
Regards
Rajesh
--- Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Dronamraju Rajesh <drajesh80@yahoo.com> writes:
> > database:- Postgres 6.5.2 ( pl dont suggest to
> upgrade
> > to 7.0.2. once this problem is solved. then i can
> do
> > testing of my app with postgres 7.0.2)
>
> If you update to 7.0.3, you'll probably find this
> problem
> goes away. It sounds to me like you are running
> into a bogus
> debug check in the older code that assumed
> LockRelease should
> never need to release more than a thousand locks.
>
> If you don't want to update, try not touching 1000
> tables in
> the same transaction. I'm guessing you do a lot of
> large-object
> slinging ... otherwise it's not that easy to get to
> 1000 ...
>
> regards, tom lane
__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/
^ permalink raw reply [nested|flat] 7+ messages in thread
* RE: LockReplace: xid table corrupted
@ 2000-12-12 09:50 Rainer Mager <rmager@vgkk.com>
parent: Dronamraju Rajesh <drajesh80@yahoo.com>
1 sibling, 0 replies; 7+ messages in thread
From: Rainer Mager @ 2000-12-12 09:50 UTC (permalink / raw)
To: Dronamraju Rajesh <drajesh80@yahoo.com>; pgsql-admin
Well, not to sound silly but, how many connections exist. Are you out of
connections?
I know that some clients on some OSes fail to free socket connections if
they die. We had this problem with JDBC on Win NT and I've heard of problems
with PHP as well. Our solution was to rewrite part of the clients so that in
all cases they shut down the db connection even if they then die a fiery
death.
--Rainer
> -----Original Message-----
> From: pgsql-admin-owner@postgresql.org
> [mailto:pgsql-admin-owner@postgresql.org]On Behalf Of Dronamraju Rajesh
> Sent: Tuesday, December 12, 2000 2:56 PM
> To: pgsql-admin@postgresql.org; pgsql-bugs@postgresql.org
> Subject: [ADMIN] LockReplace: xid table corrupted
>
>
> Hi There,
>
> I have production systems running postgres for
> 24x7x365. But suddenly it stops serving the requests
> but the postmaster does not die. I cant do select or
> even say pgsql <database-name> until i kill postmaster
> clear shared memory segments and restart it again. for
> all the forth coming requests it says "sorry, too many
> clients already".
>
> My system config :-
>
> os:- Red Hat linux 6.2
> memory:- 1GB
> cpu:- dual CPU
> database:- Postgres 6.5.2 ( pl dont suggest to upgrade
> to 7.0.2. once this problem is solved. then i can do
> testing of my app with postgres 7.0.2)
>
> command:- postmaster -i -N 256 -B 512
> >>/usr/local/pgsql/server.log 2>&1 &
>
> can anybody tell me why this happens and what the
> solution is for this ????
>
> Regards
> Rajesh
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Shopping - Thousands of Stores. Millions of Products.
> http://shopping.yahoo.com/
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: Re: [BUGS] LockReplace: xid table corrupted
@ 2000-12-12 18:08 Jie Liang <jliang@jliang.ipinc.com>
parent: Dronamraju Rajesh <drajesh80@yahoo.com>
0 siblings, 0 replies; 7+ messages in thread
From: Jie Liang @ 2000-12-12 18:08 UTC (permalink / raw)
To: Dronamraju Rajesh <drajesh80@yahoo.com>; +Cc: Tom Lane <tgl@sss.pgh.pa.us>; pgsql-admin; pgsql-bugs@postgresql.org
I remember that you cannot open more than 16 sessiones at same time
by default, if more than that you have to reset, I believe you can
find how from documentation.
Jie LIANG
Internet Products Inc.
10350 Science Center Drive
Suite 100, San Diego, CA 92121
Office:(858)320-4873
jliang@ipinc.com
www.ipinc.com
On Mon, 11 Dec 2000, Dronamraju Rajesh wrote:
> thanks tom....But strange thing is that my database
> has only 15 tables totally...which are very small
> too...
>
> so how would be the way of me reaching to 1000
> tables???
>
> and why do i get an error message "sorry too many
> clients" ???
>
> Regards
> Rajesh
> --- Tom Lane <tgl@sss.pgh.pa.us> wrote:
> > Dronamraju Rajesh <drajesh80@yahoo.com> writes:
> > > database:- Postgres 6.5.2 ( pl dont suggest to
> > upgrade
> > > to 7.0.2. once this problem is solved. then i can
> > do
> > > testing of my app with postgres 7.0.2)
> >
> > If you update to 7.0.3, you'll probably find this
> > problem
> > goes away. It sounds to me like you are running
> > into a bogus
> > debug check in the older code that assumed
> > LockRelease should
> > never need to release more than a thousand locks.
> >
> > If you don't want to update, try not touching 1000
> > tables in
> > the same transaction. I'm guessing you do a lot of
> > large-object
> > slinging ... otherwise it's not that easy to get to
> > 1000 ...
> >
> > regards, tom lane
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Shopping - Thousands of Stores. Millions of Products.
> http://shopping.yahoo.com/
>
^ permalink raw reply [nested|flat] 7+ messages in thread
* LockReplace: xid table corrupted
@ 2001-02-15 13:24 leslie.halliday@eu.effem.com
0 siblings, 1 reply; 7+ messages in thread
From: leslie.halliday@eu.effem.com @ 2001-02-15 13:24 UTC (permalink / raw)
To: pgsql-admin
Hello all,
Does anyone know what this message in the postmaster's log means?
1010125.09:08:15.323 [415] NOTICE: LockReplace: xid table corrupted
We have a Postgres (6.5.3) database running on a Linux (2.2.13) server.
In our database we have a main table 'pallets' which currently has about 150,000
rows. We vacuum
twice daily - at 9:05 am and then again at 9:05 pm. This database is replicated
to another identical box
at the application code level. What we have noticed is that now and again we
lose data from the
database! We know this because the data is in the spare database but not the
master. The data seems to
be in the database for a while after it was first written (we know because
transactions to higher-level systems
show the data) but then at some time after it just disappears!
We are wondering if it is something to do with vacuuming? We obviously don't
lose data everytime we vacuum
but what if we see the above error message while vacuuming? Could that mean
we've lost data?
At present running vacuum verbose analyze of the db takes approx 4 minutes 20
seconds.
Any help/other people's experience with this would be greatly appreciated. We
are desperate.
TIA
Les Halliday
Control Engineer
Pedigree Masterfoods
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: LockReplace: xid table corrupted
@ 2001-02-15 15:30 Tom Lane <tgl@sss.pgh.pa.us>
parent: leslie.halliday@eu.effem.com
0 siblings, 0 replies; 7+ messages in thread
From: Tom Lane @ 2001-02-15 15:30 UTC (permalink / raw)
To: leslie.halliday@eu.effem.com; +Cc: pgsql-admin
<leslie.halliday@eu.effem.com> writes:
> Does anyone know what this message in the postmaster's log means?
> 1010125.09:08:15.323 [415] NOTICE: LockReplace: xid table corrupted
> We have a Postgres (6.5.3) database running on a Linux (2.2.13) server.
I'd take it as good reason to update to 7.0.3 ... and the apparent
loss-of-data problem as even better reason. The number of bugs we
fixed between 6.5.* and 7.0.* is, um, large.
regards, tom lane
^ permalink raw reply [nested|flat] 7+ messages in thread
end of thread, other threads:[~2001-02-15 15:30 UTC | newest]
Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2000-12-12 05:55 LockReplace: xid table corrupted Dronamraju Rajesh <drajesh80@yahoo.com>
2000-12-12 06:08 ` Tom Lane <tgl@sss.pgh.pa.us>
2000-12-12 09:50 ` Rainer Mager <rmager@vgkk.com>
2000-12-12 06:28 Re: [BUGS] LockReplace: xid table corrupted Dronamraju Rajesh <drajesh80@yahoo.com>
2000-12-12 18:08 ` Jie Liang <jliang@jliang.ipinc.com>
2001-02-15 13:24 LockReplace: xid table corrupted leslie.halliday@eu.effem.com
2001-02-15 15:30 ` Tom Lane <tgl@sss.pgh.pa.us>
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