To know what a macro does

From: Werner Echezuria <wercool(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: To know what a macro does
Date: 2009-04-26 20:50:41
Message-ID: 2485a25e0904261350w2430870lba7e7c4ddebda162@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi, I've been trying to sort a column that performs some calculations, but
postgres says this: ERROR: invalid attnum: -12851. I was searching on the
source code, and I guess the error araises around this macro:
/*
* Copy the given tuple into memory we control, and decrease availMem.
* Then call the common code.
*/
COPYTUP(state, &stup, (void *) slot);

So, I'd like to know what COPYTUP does?, what is availMem?, How can I tell
postgres it is a valid attnum?

Thanks for any help!!!!

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jaime Casanova 2009-04-26 21:06:36 Re: Multiple parameters with the same name for functions.
Previous Message Gevik Babakhani 2009-04-26 20:32:42 Multiple parameters with the same name for functions.