Re: [GENERAL] pg_column_size strange result... - Mailing list pgsql-general

From Tom Lane
Subject Re: [GENERAL] pg_column_size strange result...
Date
Msg-id 19498.1502892141@sss.pgh.pa.us
Whole thread Raw
In response to [GENERAL] pg_column_size strange result...  (marin@kset.org)
List pgsql-general
marin@kset.org writes:
> Is there a reason pg_column_size returns different sizes for a constant
> and the same value from a table column?

The constant probably has the default choice of a four-byte length word,
while the on-disk form has been compressed by switching to a one-byte
length word.

            regards, tom lane


pgsql-general by date:

Previous
From: gmb
Date:
Subject: [GENERAL] optimize pg_tables query ( text vs varchar ) ...why ?
Next
From: vinny
Date:
Subject: Re: [GENERAL] optimize pg_tables query ( text vs varchar ) ...why ?