Search Postgresql Archives

Re: Understanding Datum

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Nick Raj <nickrajjain@xxxxxxxxx> writes:
> In postgres, typedef uintptr_t Datum
> Datum is getting value from PG_GETARG_POINTER(1);
> But, now problem is how would i know the type of PG_GETARG_POINTER(1)
> (postgres internally pass this argument) to figure out datum type?

Datum does not carry any type information, only a value.  Functions are
typically coded to know their input types a priori.  If you want to
write code that is not type-specific then you'd better be passing around
type OIDs as well as values.

			regards, tom lane

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux