Re: pg_column_size strange result...

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: marin(at)kset(dot)org
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: pg_column_size strange result...
Date: 2017-08-16 14:02:21
Message-ID: 19498.1502892141@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

marin(at)kset(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message vinny 2017-08-16 14:12:05 Re: optimize pg_tables query ( text vs varchar ) ...why ?
Previous Message gmb 2017-08-16 12:41:26 optimize pg_tables query ( text vs varchar ) ...why ?