pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Frank Bax <fbax@sympatico.ca>
To: pgsql-sql@postgresql.org
Subject: Re: Field length ??
Date: Thu, 20 Apr 2006 11:21:27 -0400
Message-ID: <5.2.1.1.0.20060420111921.00a5b920@pop6.sympatico.ca> (raw)
In-Reply-To: <4447515C.5070601@logix-tt.com>
References: <20060420060838.46274.qmail@web33403.mail.mud.yahoo.com>
	<20060420060838.46274.qmail@web33403.mail.mud.yahoo.com>

At 05:16 AM 4/20/06, Markus Schaber wrote:

>Hi, Louise,
>
>Louise Catherine wrote:
>
> > Could anyone explain, why the field length must be add by 4 :
> > result 1 : 10 + 4 =14
> > result 2 : 5 + 4 = 9
>
>I guess that it is because all variable length datatypes (and text types
>are such) internally contain a 4 bytes length field.


Except that the original fields were neither variable length datatypes, not 
type text.
         create table test(]
         satu char(10),
         dua char(5)
         );





view thread (7+ messages)  latest in thread

Message-ID: <5.2.1.1.0.20060420111921.00a5b920@pop6.sympatico.ca>
Permalink:  ../5.2.1.1.0.20060420111921.00a5b920@pop6.sympatico.ca/
Also on:    postgresql.org/message-id/5.2.1.1.0.20060420111921.00a5b920@pop6.sympatico.ca

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: fbax@sympatico.ca
  Subject: Re: Field length ??
  In-Reply-To: <5.2.1.1.0.20060420111921.00a5b920@pop6.sympatico.ca>

* 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