Re: Display Pg buffer cache (WIP)

Поиск
Список
Период
Сортировка
От Neil Conway
Тема Re: Display Pg buffer cache (WIP)
Дата
Msg-id 422AC401.3020702@samurai.com
обсуждение исходный текст
Ответ на Re: Display Pg buffer cache (WIP)  (Mark Kirkwood <markir@coretech.co.nz>)
Список pgsql-patches
Only two things to add: you forgot to add `cachedump.o' to the list of
OBJS in the utils/adt Makefile.

Mark Kirkwood wrote:
> +typedef struct
> +{
> +    uint32        bufferid;
> +    Oid            relfilenode;
> +    Oid            reltablespace;
> +    Oid            reldatabase;
> +    bool        isdirty;
> +    uint32        refcount;
> +    BlockNumber    blocknum;
> +
> +} CacheDumpRec;

You should probably make `isdirty' the last member of this struct, so as
to reduce alignment/padding requirements (this won't actually save any
space right now, but it might save some space if more members are added
to the struct in the future).

-Neil

В списке pgsql-patches по дате отправления:

Предыдущее
От: Neil Conway
Дата:
Сообщение: Re: Display Pg buffer cache (WIP)
Следующее
От: Pavel Stehule
Дата:
Сообщение: Implementation of SQLCODE and SQLERRM variables for PL/pgSQL