pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Table Corruption
2+ messages / 2 participants
[nested] [flat]

* Table Corruption
@ 2000-11-09 16:38  mike focosi <mike@goldendome.com>
  0 siblings, 1 reply; 2+ messages in thread

From: mike focosi @ 2000-11-09 16:38 UTC (permalink / raw)
  To: pgsql-general@postgresql.org

I have several php scripts that allow my clients to add stories to a
database. I've noticed that once in a while, when they attempt to
insert/update more than 8k into a table, the table is becoming corrupted.
When a select is done on the table, the database hangs. When this happens to
one table in one database, it brings down the whole postgreSQL server
backend. Not good.

I've created a database with the same scheme/data and have only been able to
recreate the problem once. Can't seem to do it everytime. PostgreSQL usually
gives the "PQsendQuery() -- query is too long..." error and just doesn't
follow thru with the query which is fine. I can deal with limiting my
clients to less than 8k stories. But sometimes the  table gets corrupted by
a query that shouldn't be executed (ie: stopped at the too long warning).
Has anybody ever had any problems like the one I described. I've yet to
upgrade our database servers to 7+ (running 6.4) so I'm hoping maybe that
would solve the problem. But I'd like to know what the exact problem is.

thanks
-mike

mike focosi
senior applications developer
golden dome media
http://www.goldendomemedia.com
http://www.surfmichiana.com
http://www.wndu.com




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

* Re: Table Corruption
@ 2000-11-09 17:19  Tom Lane <tgl@sss.pgh.pa.us>
  parent: mike focosi <mike@goldendome.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2000-11-09 17:19 UTC (permalink / raw)
  To: mike focosi <mike@goldendome.com>; +Cc: pgsql-general@postgresql.org

"mike focosi" <mike@goldendome.com> writes:
> I have several php scripts that allow my clients to add stories to a
> database. I've noticed that once in a while, when they attempt to
> insert/update more than 8k into a table, the table is becoming corrupted.

> Has anybody ever had any problems like the one I described. I've yet to
> upgrade our database servers to 7+ (running 6.4) so I'm hoping maybe that
> would solve the problem. But I'd like to know what the exact problem is.

Try 7.0.* --- it's much more careful about checking row-size limits.
6.4 is ancient history ;-)

			regards, tom lane



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


end of thread, other threads:[~2000-11-09 17:19 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2000-11-09 16:38 Table Corruption mike focosi <mike@goldendome.com>
2000-11-09 17:19 ` 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