CurrentExtensionObject was Re: dynloader.h missing in prebuilt package for Windows? - Mailing list pgsql-hackers

From Chapman Flack
Subject CurrentExtensionObject was Re: dynloader.h missing in prebuilt package for Windows?
Date
Msg-id 5685962C.1010605@anastigmatix.net
Whole thread Raw
In response to Re: dynloader.h missing in prebuilt package for Windows?  (Bruce Momjian <bruce@momjian.us>)
Responses Re: CurrentExtensionObject was Re: dynloader.h missing in prebuilt package for Windows?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
While on the subject of things that could make it or not into 9.5.?,
I see that 9.5.0 already adds PGDLLIMPORT on the global variable
creating_extension, but CurrentExtensionObject on the very next
line of extension.h still doesn't have it.

The simplest way I've come up with in Windows to identify the extension
being created is to create some temporary object, call
getExtensionOfObject() on it, then drop it. A bit circuitous when on
any other platform I can just look at CurrentExtensionObject....

-Chap



pgsql-hackers by date:

Previous
From: "Paragon Corporation"
Date:
Subject: Re: IMPORT FOREIGN SCHEMA return create foreign table commands are those further filtered in LIMIT and EXCEPT cases?
Next
From: Tom Lane
Date:
Subject: Re: IMPORT FOREIGN SCHEMA return create foreign table commands are those further filtered in LIMIT and EXCEPT cases?