To know what a macro does - Mailing list pgsql-hackers

From Werner Echezuria
Subject To know what a macro does
Date
Msg-id 2485a25e0904261350w2430870lba7e7c4ddebda162@mail.gmail.com
Whole thread Raw
Responses Re: To know what a macro does  (Martijn van Oosterhout <kleptog@svana.org>)
List 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: <br />/*<br />      * Copy
thegiven tuple into memory we control, and decrease availMem.<br />     * Then call the common code.<br />     */<br
/>   COPYTUP(state, &stup, (void *) slot);<br /><br />So, I'd like to know what COPYTUP does?, what is availMem?,
Howcan I tell postgres it is a valid attnum?<br /><br />Thanks for any help!!!!<br /> 

pgsql-hackers by date:

Previous
From: Gevik Babakhani
Date:
Subject: Multiple parameters with the same name for functions.
Next
From: Jaime Casanova
Date:
Subject: Re: Multiple parameters with the same name for functions.