From: | "Johnson, Shaunn" <SJohnson6(at)bcbsm(dot)com> |
---|---|
To: | PostgreSQL General Mailing List <pgsql-general(at)postgresql(dot)org> |
Subject: | troubleshoot error when creating index |
Date: | 2002-01-15 17:04:11 |
Message-ID: | 73309C2FDD95D11192E60008C7B1D5BB0452DD15@snt452.corp.bcbsm.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Howdy:
I'm running Postgres 7.1.3 on Mandrake 8.0 Linux, kernel version 2.4.16.
The debug level of postgres I believe is -d2.
I'm trying to figure out how to troubleshoot a few errors I'm
getting when I try to create index and run vacuum.
I have a script that I call ... in it:
[excerpt]
create index db2_table1_i on db2_table1 (c_contract_num, c_mbr_num);
vacuum verbose analyze db2_table1;
create index db2_table2_i on db2_table2 (c_contract_num, d_eff_dt);
vacuum verbose analyze db2_table2;
[/excerpt]
From what I can tell, when I look to see if the indexes are created,
it appears that only for the first table, but not the rest (there are
about 13 new tables that should have indices and vacuumed).
When I run the script by hand featuring only the second table / index,
I get the following:
[error]
psql:./post_load:1: pqReadData() -- backend closed the channel unexpectedly.
This probably means the backend terminated abnormally
before or while processing the request.
psql:./post_load:1: connection to server was lost
[/error]
Postgres IS running, but when I run the script, it stops and
restarts (I'm guessing) because when I try to go in via the
command line, I get a message that says, something about
starting database. (sorry, I can't find the exact message on
the terminal).
I can't find anything in the serverlog file that suggest that there are
errors occurring - or what exactly is failing. The only thing in the
/var/log/messages is whenever someone kicks off psql for one reason
or another ... but that doesn't help. I imagine that maybe the
table is corrupt, but how can I tell?
How can I troubleshoot this and get a reasonable answer?
Thanks!
-X
From | Date | Subject | |
---|---|---|---|
Next Message | Mike Bridge | 2002-01-15 17:44:59 | How to determine which are "idle in transaction" |
Previous Message | Bruce Momjian | 2002-01-15 16:50:23 | Re: [GENERAL] OT: anon CVS hassles |