Re: returning modified input from C functions

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: strk <strk(at)keybit(dot)net>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: returning modified input from C functions
Date: 2004-08-23 19:20:09
Message-ID: 10082.1093288809@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

strk <strk(at)keybit(dot)net> writes:
> Is returning a pointer to the input safe in every case ?

You mean for returning *unmodified* input, don't you?

Yes, that's safe. Scribbling on input values is definitely never safe.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Daniel Kalchev 2004-08-23 20:02:49 Re: missing data/global
Previous Message Tom Lane 2004-08-23 19:02:50 Re: [PATCHES] ALTER SCHEMA ... SET TABLESPACE