Re: SPI_connect, SPI_connect_ext return type - Mailing list pgsql-hackers

From Stepan Neretin
Subject Re: SPI_connect, SPI_connect_ext return type
Date
Msg-id CAMaYL5b6hVHZVn6AAbpok3kmz4fSGyfs7TbCY5N27CLFCH6GCw@mail.gmail.com
Whole thread Raw
In response to Re: SPI_connect, SPI_connect_ext return type  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers

>That would break a lot of code (much of it not under our control) to
little purpose; it would also foreclose the option to return to using
SPI_ERROR_CONNECT someday.

Agree, it makes sense.
The only question left is, is there any logic in why in some places its return value of these functions is checked, and in some not? Can I add checks everywhere?
Best Regards, Stepan Neretin.

pgsql-hackers by date:

Previous
From: Jelte Fennema-Nio
Date:
Subject: Re: libpq: Fix lots of discrepancies in PQtrace
Next
From: Nathan Bossart
Date:
Subject: Re: optimizing pg_upgrade's once-in-each-database steps