From: | Craig Ringer <craig(at)2ndquadrant(dot)com> |
---|---|
To: | Robert Haas <robertmhaas(at)gmail(dot)com> |
Cc: | Peter Geoghegan <pg(at)bowt(dot)ie>, Noah Misch <noah(at)leadboat(dot)com>, Andres Freund <andres(at)anarazel(dot)de>, Brian Cloutier <brian(at)citusdata(dot)com>, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Add PGDLLIMPORT lines to some variables |
Date: | 2017-12-07 05:47:32 |
Message-ID: | CAMsr+YFTsq-86MnsNng=mPvjjh5EAbzfMK0ptJPvzyvpFARuRg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On 5 December 2017 at 22:49, Robert Haas <robertmhaas(at)gmail(dot)com> wrote:
>
> Committed with these additions. Please check that I haven't messed
> anything up.
>
>
Looks good to me.
For the record the commit is
commit c572599c65bfe0387563233faabecd2845073538
Author: Robert Haas <rhaas(at)postgresql(dot)org>
Date: Tue Dec 5 09:23:57 2017 -0500
Mark assorted variables PGDLLIMPORT.
This makes life easier for extension authors who wish to support
Windows.
Brian Cloutier, slightly amended by me.
Discussion:
http://postgr.es/m/CAJCy68fscdNhmzFPS4kyO00CADkvXvEa-28H-OtENk-pa2OTWw@mail.gmail.com
plus back branches.
I was going to pipe up here to add ReplicationSlotCtl to the list.
Otherwise the only way to access slot information is via the SPI and
pg_stat_replication_slots, which isn't super fun. And it's not like
ReplicationSlotCtl is any more internal than MyReplicationSlot.
I missed the boat on your commit, but ... please?
Patches attached. MyReplicationSlot was only made PGDLLIMPORT in 9.6, so
there's one for 9.4/9.5 and one for 9.6, 10, and master. Personally I don't
care about 9.4/9.5 in the slightest for this, but that's where c572599c is
backpatched to.
--
Craig Ringer http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
Attachment | Content-Type | Size |
---|---|---|
94-95-v1-0001-Make-MyReplicationSlot-and-ReplicationSlotCtl-PGD.patch | text/x-patch | 891 bytes |
96-10-master-v1-0001-Mark-ReplicationSlotCtl-as-PGDLLIMPORT.patch | text/x-patch | 777 bytes |
From | Date | Subject | |
---|---|---|---|
Next Message | Ashutosh Bapat | 2017-12-07 05:53:17 | Re: [HACKERS] postgres_fdw super user checks |
Previous Message | Amit Langote | 2017-12-07 05:10:45 | Re: [HACKERS] INSERT ON CONFLICT and partitioned tables |