"=?EUC-KR?B?vK2x4ryu?="<akbar@xxxxxxxxx> writes: > <P>Please help me to solve the problem.(Sorry, I'm not good at english speeking)</P> This code has no chance of working --- you cannot hold an SPI context open across multiple calls to an SRF. Run the SPI query to completion during the FIRSTCALL setup, and stash the results someplace safe. regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 5: don't forget to increase your free space map settings