Re: What's the prefix?

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: What's the prefix?
Дата
Msg-id CAKFQuwYc81262fkoR+A2At6a0JOcHx4x_6SMjTUgj=19LD7D3A@mail.gmail.com
обсуждение исходный текст
Ответ на What's the prefix?  ("jacktby@gmail.com" <jacktby@gmail.com>)
Список pgsql-hackers
On Sun, Feb 26, 2023 at 9:16 AM jacktby@gmail.com <jacktby@gmail.com> wrote:
use these sqls:
create table t(a text);
insert into t values('a');
select lp,lp_len,t_data from heap_page_items(get_raw_page('t',0));
lp | lp_len | t_data 
----+--------+--------
  1 |     26 | \x0561
as you can see, the 61 is 'a', so what's the 05??? strange.

text is variable length so there is header information built into the datatype representation that indicates how long the content is.

David J.

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

Предыдущее
От: "jacktby@gmail.com"
Дата:
Сообщение: What's the prefix?
Следующее
От: Andres Freund
Дата:
Сообщение: Re: windows/meson cfbot warnings