aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/trigger.c
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2011-12-12 09:49:47 +0200
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2011-12-12 10:10:53 +0200
commit8409b60476a4112e654d1a5099dd67a54f197afd (patch)
tree6451e0492f945e38a69b0517ff16ec7448aacf4d /src/backend/commands/trigger.c
parent0f44335122fd01b54417bc955d6a98b967ca832c (diff)
downloadpostgresql-8409b60476a4112e654d1a5099dd67a54f197afd.tar.gz
postgresql-8409b60476a4112e654d1a5099dd67a54f197afd.zip
Revert the behavior of inet/cidr functions to not unpack the arguments.
I forgot to change the functions to use the PG_GETARG_INET_PP() macro, when I changed DatumGetInetP() to unpack the datum, like Datum*P macros usually do. Also, I screwed up the definition of the PG_GETARG_INET_PP() macro, and didn't notice because it wasn't used. This fixes the memory leak when sorting inet values, as reported by Jochen Erwied and debugged by Andres Freund. Backpatch to 8.3, like the previous patch that broke it.
Diffstat (limited to 'src/backend/commands/trigger.c')
0 files changed, 0 insertions, 0 deletions