Re: [BUGS] Corrpupt Data File

2004-02-26 Thread Tom Lane
Alex Derbes <[EMAIL PROTECTED]> writes: > deleting the indexes from the table did not help. Is there a tool or > method that that I could use to simply skip the bad data and at least > recover the good blocks? Just zero out the broken page, eg with dd from /dev/zero. Note it might be a good id

Re: [BUGS] Corrpupt Data File

2004-02-26 Thread Alex Derbes
for the annals of postgres maintenance I got my DB running by using DD to copy the blocks before the corrupt block, then add block from /dev/zero, then add the remaining blocks from the file. I discovered the block size by looking at he output of pg_filedump. To find the offending file select re

Re: [BUGS] Known issue with Reindex-based corruption?

2004-02-26 Thread Josh Berkus
Tom, > One question that comes to mind is were you reindexing a system or user > table? User. > Another is whether you were using disks that lie about write > completion (SCSI vs IDE)? First thing I thought of. Haven't been able to verify, yet. The basic symptoms are: 1) Machine stated sche

Re: [BUGS] Known issue with Reindex-based corruption?

2004-02-26 Thread Tom Lane
Josh Berkus <[EMAIL PROTECTED]> writes: > The basic symptoms are: > 1) Machine stated scheduled REINDEX. > 2) Unexpected power-out > 3) On reboot, we have 2 different versions of the index file on disk, > one with 0 bytes. Attempts to use the index (via SELECT) result in > statement-fatal errors

Re: [BUGS] Known issue with Reindex-based corruption?

2004-02-26 Thread Josh Berkus
Tom, > That's a definite possibility. Before 7.4 we did not emit WAL records > for data written during index build. What we could have here is that > the transaction completed and synced to WAL, but none of the data-file > writes were sent to disk before power-out. On restart, WAL replay would

Re: [BUGS] Known issue with Reindex-based corruption?

2004-02-26 Thread Tom Lane
Josh Berkus <[EMAIL PROTECTED]> writes: > Would this be back-patchable by a good PG hacker? The client has $$$. It'd be more productive for them to update to 7.4 ... regards, tom lane ---(end of broadcast)--- TIP 7: don't

Re: [BUGS] Known issue with Reindex-based corruption?

2004-02-26 Thread Josh Berkus
Tom, > It'd be more productive for them to update to 7.4 ... It's a distributed app, meaning that they have boxes in the field which can not be practically updated by remote. They'll be using 7.4 for *new* boxes, sometime around November. Their requirements include 6 months of testing before

[BUGS] Can't do any operation with the Server.

2004-02-26 Thread ronen
Hello, I downloaded an install the 'PeerDirect PostgreSQL beta for Windows'. I followed all instructions ' started the server and I verified that port 5432 is listening. Also : 'pg_ctl ststus' = running. However when I try to createdb , I get stucked and do nothing. What is the problem?

Re: [BUGS] BUG #1083: Insert query reordering interacts badly with

2004-02-26 Thread Martin Langhoff (Catalyst IT)
Tom Lane wrote: "PostgreSQL Bugs List" <[EMAIL PROTECTED]> writes: /* this statement will reverse the order of CURRVAL()/NEXTVAL() to match the column order of the table */ INSERT INTO testing (col_b, col_a) VALUES (NEXTVAL('seq'), CURRVAL('seq')); This is not a bug. The order of evalua

Re: [BUGS] BUG #1083: Insert query reordering interacts badly with

2004-02-26 Thread Martin Langhoff
Tom Lane wrote: How about SELECT nextval('seq'); -- ignore result INSERT INTO ... VALUES (currval('seq'), currval('seq')); Well, it works for my sample case, I have to agree. Maybe I should mention that I tried to boil down the bugreport to the simplest repro case I could. My actual

[BUGS] The syntax about CREATE DOMAIN

2004-02-26 Thread Gary WAN
Dear Sir, I would like to tell you that the SQL about "Create Domain" is still cannot involve constraints other than NULL | NOT NULL in Postgresql 7.4.1. For instances, when I type the following sentences, it shows error message: Create Domain GenderDomain CHAR(1) Constraint g Check Value in

Re: [BUGS] BUG #1082: Order by doesn't sort correctly.

2004-02-26 Thread Richard Neill
Tom Lane wrote: "PostgreSQL Bugs List" <[EMAIL PROTECTED]> writes: Description:Order by doesn't sort correctly. It almost certainly is the correct sort order according to the locale you're using. Use pg_controldata to check the database locale. You'll probably want to re-initdb in C lo

Re: [BUGS] BUG #1082: Order by doesn't sort correctly.

2004-02-26 Thread Richard Neill
Dear Tom, Thank you for your explanation. It's very helpful, although I was extremely surprised! I agree, it's not a postgresql bug. Can I suggest it might be worth a mention on the "Order By" part of the documentation. i.e. this page: http://www.postgresql.org/docs/7.3/static/sql-select.html#

[BUGS] intermittent error: 'variable not found in subplan target list' - INCOMPLETE SUBMISSION

2004-02-26 Thread Damon Hart
name: Damon Hart email: [EMAIL PROTECTED] System Configuration - Architecture : Intel PIII dual 800MHz, 1.5 GB RAM Operating System : Linux xs1.xd 2.4.22-1.2115.nptlsmp #1 SMP Wed Oct 29 15:30:09 EST 2003 i686 i686 i386 GNU/Linux (Fedora Core 1) PostgreSQL versi

Re: [BUGS] The syntax about CREATE DOMAIN

2004-02-26 Thread Stephan Szabo
On Tue, 24 Feb 2004, Gary WAN wrote: > Dear Sir, > I would like to tell you that the SQL about "Create Domain" is still > cannot involve constraints other than NULL | NOT NULL in Postgresql 7.4.1. > > For instances, when I type the following sentences, it shows error > message: > > Create Do

Re: [BUGS] The syntax about CREATE DOMAIN

2004-02-26 Thread Tom Lane
"Gary WAN" <[EMAIL PROTECTED]> writes: > Create Domain GenderDomain CHAR(1) Constraint g Check Value in ('M','F'); You need parentheses around the check expression. AFAICS this is per spec. regards, tom lane ---(end of broadcast)

Re: [BUGS] intermittent error: 'variable not found in subplan target list' - INCOMPLETE SUBMISSION

2004-02-26 Thread Tom Lane
Damon Hart <[EMAIL PROTECTED]> writes: > I had to remove the attached schema.sql file as the list manager refused > the complete submission for overall message size (112KB). I tried to > reduce the size of the data, but ran into trouble reproducing the error. You can send me the test case off-l

[BUGS] Corrpupt Data File

2004-02-26 Thread Alex Derbes
Hi, I have a postgres data base that is probably about 2gigs in size spread across a couple of tables. The orders table is about 500megs in size and is mostly writes. When running "select count(1) from orders" on the database this evening, the DB responded with "ERROR: Inval

[BUGS] unsubscribe

2004-02-26 Thread Noel Cornejo
---(end of broadcast)--- TIP 2: you can get off all lists at once with the unregister command (send "unregister YourEmailAddressHere" to [EMAIL PROTECTED])