pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: PegoraroF10 <marcos@f10.com.br>
Cc: pgsql-general@postgresql.org
Subject: Re: why toasted is created when domain is used ?
Date: Mon, 05 Aug 2019 09:51:38 -0400
Message-ID: <11202.1565013098@sss.pgh.pa.us> (raw)
In-Reply-To: <1565006878327-0.post@n3.nabble.com>
References: <1565006878327-0.post@n3.nabble.com>

PegoraroF10 <marcos@f10.com.br> writes:
> So, the question is, when I create a table using domains it creates a toast
> for it, why ?

For me, this doesn't happen for domains over fixed-width types, only
variable-width types ... which doesn't seem to match your example.

The reason it happens for variable-width cases is that
type_maximum_size() only knows about built-in types,
so the system can't determine the maximum row width.

			regards, tom lane





view thread (3+ messages)  latest in thread

Message-ID: <11202.1565013098@sss.pgh.pa.us>
Permalink:  ../11202.1565013098@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/11202.1565013098@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, marcos@f10.com.br
  Subject: Re: why toasted is created when domain is used ?
  In-Reply-To: <11202.1565013098@sss.pgh.pa.us>
  References: <1565006878327-0.post@n3.nabble.com> <11202.1565013098@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox