pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedBroken Tables?
2+ messages / 2 participants
[nested] [flat]
* Broken Tables?
@ 2001-06-13 17:26 james <spare1@cqm.co.uk>
0 siblings, 1 reply; 2+ messages in thread
From: james @ 2001-06-13 17:26 UTC (permalink / raw)
To: pgsql-admin
Hi, I'm working on a disaster recovery.......
When I do a
psql> SELECT * from tablename;
I get the full table back, but when I do a
psql> SELECT * from tablename WHERE column_name ='variable';
it returns empty rows even though I know for a fact and have checked using the select * query that rows should exist and have the variable in the correct column!!!
I could do a select *, grab all the data then drop the table then create the same table again and feed in the data, but I wonder if there is a better way???
Cheers...
James
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Broken Tables?
@ 2001-06-13 19:05 Tom Lane <tgl@sss.pgh.pa.us>
parent: james <spare1@cqm.co.uk>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2001-06-13 19:05 UTC (permalink / raw)
To: james <spare1@cqm.co.uk>; +Cc: pgsql-admin
"james" <spare1@cqm.co.uk> writes:
> I get the full table back, but when I do a
> psql> SELECT * from tablename WHERE column_name =3D'variable';
> it returns empty rows even though I know for a fact and have checked using =
> the select * query that rows should exist and have the variable in the corr=
> ect column!!!
Corrupted index maybe? If there's an index on column_name, try dropping
and rebuilding it.
regards, tom lane
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2001-06-13 19:05 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-06-13 17:26 Broken Tables? james <spare1@cqm.co.uk>
2001-06-13 19:05 ` 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