Re: pg_upgrade: convert on read is dead end - Mailing list pgsql-hackers

From Heikki Linnakangas
Subject Re: pg_upgrade: convert on read is dead end
Date
Msg-id 48F36974.3010007@enterprisedb.com
Whole thread Raw
In response to Re: pg_upgrade: convert on read is dead end  (Zdenek Kotala <Zdenek.Kotala@Sun.COM>)
List pgsql-hackers
Zdenek Kotala wrote:
> I expect that function cannot get toast pointer. It can get only 
> detoasted attributes. Correct me if I'm wrong.

A function is passed a raw datum, which can be toasted. Now, practically 
all functions call one of the PG_GETARG_* macros that detoast the datum 
before doing anything else, but there is also PG_GETARG_RAW_VARLENA_P 
macro that returns the toast pointer. Although, grepping through the 
source code suggests that it's not actually used anywhere.

--   Heikki Linnakangas  EnterpriseDB   http://www.enterprisedb.com


pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Re: CLUSTER, REINDEX, VACUUM in "read only" transaction?
Next
From: "David E. Wheeler"
Date:
Subject: Re: A small note about the difficulty of managing subprojects