Re: Accessing schema data in information schema - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: Accessing schema data in information schema
Date
Msg-id 20060322231008.GB9815@surnet.cl
Whole thread Raw
In response to Re: Accessing schema data in information schema  (Hannu Krosing <hannu@skype.net>)
Responses Re: Accessing schema data in information schema  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Hannu Krosing wrote:

> I guess we can't easily start locking some subarea of a page, say 256
> byte subpage, or just the tuple.

> OTOH it may be possible as we don't need to lock page header for
> sequences as the tuple is updated in place and will not change in size.

Huh, we _can_ lock individual tuples, using LockTuple() (or rather,
heap_lock_tuple).  Since the tuple is modified in place, there's no need
to lock the whole page.

> OTOOH, I'm afraid we still need to WAL the whole page, so the savings
> will be marginal.

Huh, why?  We can just keep the current WAL logging for sequences, or
something very similar, can't we?

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.


pgsql-hackers by date:

Previous
From: Hannu Krosing
Date:
Subject: Re: Accessing schema data in information schema
Next
From: Tom Lane
Date:
Subject: Re: Accessing schema data in information schema