Re: proposal: PL/Pythonu - function ereport - Mailing list pgsql-hackers

From Pavel Stehule
Subject Re: proposal: PL/Pythonu - function ereport
Date
Msg-id CAFj8pRAubCjTrHGa6f-Rjw1UvdPVHB0QYSGDWSjO-uLSH4jXpQ@mail.gmail.com
Whole thread Raw
In response to Re: proposal: PL/Pythonu - function ereport  (Catalin Iacob <iacobcatalin@gmail.com>)
Responses Re: proposal: PL/Pythonu - function ereport
List pgsql-hackers
Hi

I am sending new version. Current version does:

1. the plpy utility functions can use all ErrorData fields,
2. there are no new functions,
3. via GUC plpythonu.legacy_custom_exception we can return previous behave,
4. only exception Error is raised with natural structure - no composite value spidata.
5. fields: message, detail and hint are implicitly translated to string - it decrease a necessity of legacy mode

Curent version doesn't do:
1. touch plpy exception classes.

A doc should be enhanced, but the code should be +/- final.

Regards

Pavel


Attachment

pgsql-hackers by date:

Previous
From: Craig Ringer
Date:
Subject: Re: pg_basebackup vs WAL fetching
Next
From: Andres Freund
Date:
Subject: Re: pg_basebackup vs WAL fetching