Re: switch UNLOGGED to LOGGED - Mailing list pgsql-hackers

From Leonardo Francalanci
Subject Re: switch UNLOGGED to LOGGED
Date
Msg-id 906765.25804.qm@web29001.mail.ird.yahoo.com
Whole thread Raw
In response to Re: switch UNLOGGED to LOGGED  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: switch UNLOGGED to LOGGED  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
> Yes, that seems like a very appealing approach.   There is plenty of
> bit-space available in xinfo, and we could reserve a bit  each for
> nrels, nsubxacts, and nmsgs, with set meaning that an integer count  of
> that item is present and clear meaning that the count is omitted  from
> the structure (and zero).  This will probably require a bit of  tricky
> code reorganization so I think it should be done separately from  the
> main patch.

Ok, I'll try and send a patch with this change only.
BTW  xinfo  is 32 bit long, but I think only 2 bits are used right now?
I think I can make it a 8 bits, and add another 8 bits for nrels,
nsubxacts, and nmsgs and the new thing. That should save
another 2 bytes, while leaving space for extention. Or we can make
it a 8 bits only, but only 2 bits would be left "empty" for future
extentions; I don't know if we care about it...


Leonardo



pgsql-hackers by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: "stored procedures" - use cases?
Next
From: Heikki Linnakangas
Date:
Subject: Re: Formatting Curmudgeons WAS: MMAP Buffers