Tom Lane wrote:
>
> More to the point, I think we have to assume old-style interface if we
> see ... LANGUAGE 'C' with no other decoration, because any other
> assumption is guaranteed to break all existing user-defined functions.
Just successfully loading an old-style C function doesn't
guarantee that it works anyway. I pointed out before that the
changes due to TOAST require each function that takes
arguments of varlen types to expect toasted values. Worst
case a dump might reload and anything works fine, but a month
later the first toasted value appears and the old-style C
function corrupts the data without a single warning.
We need to WARN, WARN and explicitly WARN users of selfmade C
functions about this in any possible place!
Jan
--
#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me. #
#================================================== [EMAIL PROTECTED] #
- Re: [HACKERS] Coping with 'C' vs 'newC' function language... Philip Warner
- Re: [HACKERS] Coping with 'C' vs 'newC' function lan... Tom Lane
- Re: [HACKERS] Coping with 'C' vs 'newC' function... Philip Warner
- Re: [HACKERS] Coping with 'C' vs 'newC' func... Tom Lane
- Re: [HACKERS] Coping with 'C' vs 'newC' ... Marko Kreen
- Re: [HACKERS] Coping with 'C' vs 'n... Bruce Momjian
- Re: [HACKERS] Coping with 'C' v... Philip Warner
- Re: [HACKERS] Coping with 'C' vs 'newC' ... Philip Warner
- Re: [HACKERS] CREATE MODULE (was: Coping... Mark Hollomon
- Re: [HACKERS] CREATE MODULE (was: C... Philip Warner
- Re: [HACKERS] Coping with 'C' vs 'newC' function... Jan Wieck
- Re: [HACKERS] Coping with 'C' vs 'newC' func... Peter Eisentraut
- Re: [HACKERS] Coping with 'C' vs 'newC' ... Tom Lane
- Re: [HACKERS] Coping with 'C' vs 'n... Bruce Momjian
- Re: [HACKERS] Coping with 'C' v... Tom Lane
- Re: [HACKERS] Coping with 'C' v... Thomas Lockhart
- Re: [HACKERS] Coping with 'C' v... Bruce Momjian
- Re: [HACKERS] Coping with 'C' v... Hannu Krosing
- Re: [HACKERS] Coping with 'C' v... Bruce Momjian
- Re: [HACKERS] Coping with 'C' vs 'newC' func... Tom Lane
