Re: [HACKERS] Add SPI results constants available for PL/*

2012-01-04 Thread Samuel PHAN
I agree with Pavel also. Putting these constants in the pg_catalog isn't the cleanest solution. Though one can make its own little lib in python, perl, whatever, to store these constants, it would be better if through the compilation, these C constants were copied in a way for PL/*. I can't reall

[HACKERS] Add SPI results constants available for PL/*

2012-01-03 Thread Samuel PHAN
NING 13 #define SPI_OK_REWRITTEN 14 Is there a way to have access to these constants from the PL/python code and other PL/* (Tcl, Perl, etc.) ? Thanks, -- Samuel PHAN