Re: Improve error handling in pltcl

From: Jim Nasby <Jim(dot)Nasby(at)BlueTreble(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Improve error handling in pltcl
Date: 2016-03-23 03:31:30
Message-ID: 56F20E12.2040102@BlueTreble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 3/20/16 8:42 PM, Jim Nasby wrote:
>> The doc example also makes me think that more effort should get expended
>> on converting internalquery/internalpos to just be query/cursorpos.
>> It seems unlikely to me that a Tcl function could ever see a case
>> where the latter fields are useful directly.
>
> Is there docs or an example on how to handle that? I looked at the
> plpython stuff and I'm still really unclear on what exactly an
> internalquery is as opposed to regular context info?
> PLy_spi_exception_set simply exposes the raw internalquery and internalpos.

Anyone any pointers on this? I'm not sure I can finish the docs without
knowing what we want to do here.
--
Jim Nasby, Data Architect, Blue Treble Consulting, Austin TX
Experts in Analytics, Data Architecture and PostgreSQL
Data in Trouble? Get it in Treble! http://BlueTreble.com

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Kyotaro HORIGUCHI 2016-03-23 03:35:41 Re: Show dropped users' backends in pg_stat_activity
Previous Message Jim Nasby 2016-03-23 03:21:19 Re: Speed up Clog Access by increasing CLOG buffers