[GENERAL] Possible to ignore transactions n?

2005-06-08 Thread John Barham
Is is possible to tell PostgreSQL to ignore transactions committed after some point? In particular I want to get it to rollback a faulty recovery. On a related note, how can I get the most recent transaction id from the WAL segment that I want to rollback to? TIA, John Barham

[GENERAL] Recovery when old WAL segment has been overwritten?

2005-06-07 Thread John Barham
between May 28 and yesterday morning? John Barham ---(end of broadcast)--- TIP 2: you can get off all lists at once with the unregister command (send unregister YourEmailAddressHere to [EMAIL PROTECTED])

Re: [GENERAL] Why sequential scan for currval?

2005-04-27 Thread John Barham
test=# explain select s from tt where id = currval('tt_id_key'); QUERY PLAN -- Seq Scan on tt (cost=0.00..1734.42 rows=1 width=32) Filter: (id = currval('tt_id_key'::text)) (2 rows) should be: test=# explain

[GENERAL] Why sequential scan for currval?

2005-04-27 Thread John Barham
test=# create table tt (id serial unique, s varchar); [populate tt w/ 10 rows] test=# insert into tt (s) values ('foo'); test=# select currval('tt_id_seq'); currval - 12 (1 row) test=# explain select s from tt where id = 12; QUERY PLAN