Re: [HACKERS] "no snapshot has been set" error

2004-11-21 Thread Tom Lane
Ruey-Lung Hsiao <[EMAIL PROTECTED]> writes: > In my X_in() function, I want to access other table to do some > bookkeeping stuff. this table keeps track of the number of calls to > X_in(). However, while SPI_connect() returns SPI_OK_CONNECT, whenever I > execute SPI_exec( "SELECT count FROM XTAB

[HACKERS] "no snapshot has been set" error

2004-11-20 Thread Ruey-Lung Hsiao
Hi all, I encountered a problem when I'm implementing my user-defined type. My user-defined type is defined as CREATE TYPE X ( INTERNALLENGTH = 10 INPUT = X_in, OUTPUT = X_out ); In my X_in() function, I want to access other table to do some bookkeeping stuff. this table keeps track