Re: what is the meaning of Datum?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Luca Ferrari <fluca1978(at)infinito(dot)it>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: what is the meaning of Datum?
Date: 2010-06-23 14:49:50
Message-ID: 22559.1277304590@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Luca Ferrari <fluca1978(at)infinito(dot)it> writes:
> ok this is a silly question, but I've got a doubt: what is the exact meaning
> of Datum?

It's the backend-internal representation of a single value of any SQL
data type. The code using the Datum has to know which type it is,
since the Datum itself doesn't contain that information. Usually,
C code will work with a value in a "native" representation, and then
convert to or from Datum in order to pass the value through
data-type-independent interfaces.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Andrew Geery 2010-06-23 14:53:04 Re: missing uuid functions in postgresql-contrib RPM for linux?
Previous Message Adrian Klaver 2010-06-23 14:43:28 Re: unexpected effect of FOREIGN KEY ON CASCADE DELETE