Re: Re: COPY BINARY file format proposal

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Re: COPY BINARY file format proposal
Дата
Msg-id 8159.976683382@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Re: COPY BINARY file format proposal  (ncm@zembu.com (Nathan Myers))
Список pgsql-hackers
ncm@zembu.com (Nathan Myers) writes:
> I don't know if you get the point of the fixed-size comment field.  
> The idea was that a comment could be poked into an existing COPY 
> image, after it was written.

Yes, I did get the point ...

> A variable-size comment field in an
> already-written image might leave no space to poke in anything.  A 
> variable-size comment field with a required minimum size would 
> satisfy both needs, at some cost in complexity.  

This strikes me as a perfect argument for a variable-size field.
If you want to leave N bytes for a future poked-in comment, you do that.
If you don't, then not.  Leaving 128 bytes (or any other frozen-by-the-
file-format number) is guaranteed to satisfy nobody.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: external function proposal for 7.2
Следующее
От: mlw
Дата:
Сообщение: C function proposal redux