RE: [HACKERS] couldn't rollback cache ?

From: "Hiroshi Inoue" <Inoue(at)tpf(dot)co(dot)jp>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "pgsql-hackers" <pgsql-hackers(at)postgresql(dot)org>
Subject: RE: [HACKERS] couldn't rollback cache ?
Date: 1999-09-24 09:45:38
Message-ID: 000f01bf0671$8ece0240$2801007e@cadzone.tpf.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> -----Original Message-----
> From: Hiroshi Inoue [mailto:Inoue(at)tpf(dot)co(dot)jp]
> Sent: Wednesday, September 22, 1999 7:12 PM
> To: Tom Lane
> Cc: pgsql-hackers
> Subject: RE: [HACKERS] couldn't rollback cache ?
>

I thought about the way which neither calls HeapTupleSatis-
fies() in SearchSysCache() nor invalidates syscache entry
by OID.

In this case,we would need the information as follows.

1. To_be_rollbacked info for the backend
A list of being inserted system tuples.
This list is held till end of transaction.
In case of commit,this list is ignored and discarded.
In case of rollback,tuples inserted after the specified
savepoint are rollbacked and discarded. Syscache
and relcache entries for the backend which correspond
to the tuples are invalidated.

2, To_be_invalidated info for the backend
A list of being deleted system tuples.
This list is discarded at every command.
In case of rollback this list is ignored.
Otherwise,syscache and relcache entries for the backend
which correspond to the tuples in this list are invalidated
before execution of each command.

3. To_be_invalidated info for other backends
A list of being deleted system tuples.
This list is held till end of transaction.
In case of commit,this list is sent to other backends and
discarded.
In case of rollback,tuples deleted after the specified savepoint
are discarded.

4. Immediate registrarion of to_be_invalidated relcache for all backends
Currently SI messages aren't sent in case of elog(ERROR/FATAL).
Seems the following commands have to register relcache invali-
dation for all backends just when we call smgrunlink()/smgrtruncate().

DROP TABLE/INDEX
TRUNCATE TABLE(implemented by Mike Mascari)
VACUUM

Comments ?

Hiroshi Inoue
Inoue(at)tpf(dot)co(dot)jp

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 1999-09-24 10:37:24 Re: [HACKERS] create rule changes table to view ?
Previous Message Daniel Péder 1999-09-24 09:45:32 postgres startup script modification (Linux RedHat)