Re: returning modified input from C functions - Mailing list pgsql-hackers

From Tom Lane
Subject Re: returning modified input from C functions
Date
Msg-id 10082.1093288809@sss.pgh.pa.us
Whole thread Raw
In response to returning modified input from C functions  (strk <strk@keybit.net>)
Responses Re: returning modified input from C functions  (strk <strk@keybit.net>)
List pgsql-hackers
strk <strk@keybit.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


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [PATCHES] ALTER SCHEMA ... SET TABLESPACE
Next
From: Daniel Kalchev
Date:
Subject: Re: missing data/global