Re: [HACKERS] Throw error and ErrorContext question.

2007-11-09 Thread Gevik Babakhani
/www.truesoftware.nl > -Original Message- > From: Tom Lane [mailto:[EMAIL PROTECTED] > Sent: Thursday, November 08, 2007 2:32 AM > To: Gevik Babakhani > Cc: pgsql-hackers@postgresql.org > Subject: Re: [HACKERS] Throw error and ErrorContext que

Re: [HACKERS] Throw error and ErrorContext question.

2007-11-07 Thread Tom Lane
"Gevik Babakhani" <[EMAIL PROTECTED]> writes: > I have considered a noError boolean too. > but please considered the following: > step 1: call qualifiedNameToVar(noError = true), which generates an error > but gets suppressed by noError parameter. > step 2: process function parameter name for

Re: [HACKERS] Throw error and ErrorContext question.

2007-11-07 Thread Gevik Babakhani
, 2007 12:25 AM > To: Gevik Babakhani > Cc: pgsql-hackers@postgresql.org > Subject: Re: [HACKERS] Throw error and ErrorContext question. > > "Gevik Babakhani" <[EMAIL PROTECTED]> writes: > > I am trying to catch and copy an error to be re-thrown later. > > T

Re: [HACKERS] Throw error and ErrorContext question.

2007-11-07 Thread Tom Lane
"Gevik Babakhani" <[EMAIL PROTECTED]> writes: > I am trying to catch and copy an error to be re-thrown later. This is certainly not the right way to go about solving your problem. If you need to refactor some of the column lookup routines to make this patch work, then do so, but don't try to make

[HACKERS] Throw error and ErrorContext question.

2007-11-07 Thread Gevik Babakhani
Hi, Regarding the function parameter ref TODO: I am trying to catch and copy an error to be re-thrown later. I have the following questions: 1. Is the catch part in the following safe? 2. How do I re-throw the copied error when I am not in ErrorContext anymore? I cannot use ReThrowError becau