Binary I/O for isn extension

Lists: pgsql-hackers
From: Shay Rojansky <roji(at)roji(dot)org>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Binary I/O for isn extension
Date: 2016-05-31 10:07:44
Message-ID: CADT4RqCjwFxq9-yLzPN1FE9pGtNZbxngSzfVRNTHzFDardU-vw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Hi.

Attached is a small patch which adds binary input/output for the types
added by the isn extension.

Shay

Attachment Content-Type Size
isn-binary.patch application/octet-stream 3.3 KB

From: Andreas Karlsson <andreas(at)proxel(dot)se>
To: Shay Rojansky <roji(at)roji(dot)org>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Binary I/O for isn extension
Date: 2016-05-31 10:47:15
Message-ID: [email protected]
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Hi,

Thanks for the patch, you can add it to our commitfest app so it gets
reviewed in the next commitfest.

https://commitfest.postgresql.org/

A suggestion to make it easier for your patch to be accepted:

When adding new functions to an extension you need to bump the version
of the extension by renaming the file, updating the .control file,
creating an upgrade script, and updating the Makefile to include the new
files.

Andreas


From: Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr>
To: Shay Rojansky <roji(at)roji(dot)org>
Cc: PostgreSQL Developers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Binary I/O for isn extension
Date: 2016-05-31 10:49:51
Message-ID: alpine.DEB.2.10.1605311247400.12550@sto
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers


Hello,

> Attached is a small patch which adds binary input/output for the types
> added by the isn extension.

I added this patch to the next CF (2016-09) under "Miscellaneous".

Out of curiosity, what is the motivation?

--
Fabien.


From: Shay Rojansky <roji(at)roji(dot)org>
To: Andreas Karlsson <andreas(at)proxel(dot)se>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Binary I/O for isn extension
Date: 2016-05-31 10:56:13
Message-ID: CADT4RqB2-xgHzgxbVC8UNuLKedvJ=aUpfnk_iXWo0C0yUcDM5w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

>
> When adding new functions to an extension you need to bump the version of
> the extension by renaming the file, updating the .control file, creating an
> upgrade script, and updating the Makefile to include the new files.

Thanks for the guidance, I'll fix all that and resubmit a patch.


From: Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr>
To: Andreas Karlsson <andreas(at)proxel(dot)se>
Cc: Shay Rojansky <roji(at)roji(dot)org>, PostgreSQL Developers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Binary I/O for isn extension
Date: 2016-05-31 10:57:33
Message-ID: alpine.DEB.2.10.1605311250130.12550@sto
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers


> Thanks for the patch, you can add it to our commitfest app so it gets
> reviewed in the next commitfest.

I did this.

> A suggestion to make it easier for your patch to be accepted:
>
> When adding new functions to an extension you need to bump the version of the
> extension by renaming the file, updating the .control file, creating an
> upgrade script, and updating the Makefile to include the new files.

Indeed.

Moreover I'm not sure that a type may me updated incrementaly to add new
send/receive functions.

--
Fabien.


From: Shay Rojansky <roji(at)roji(dot)org>
To: Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr>
Cc: PostgreSQL Developers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Binary I/O for isn extension
Date: 2016-05-31 11:02:16
Message-ID: CADT4RqDqsdy4Vk-UjRS_Wba-66OUYp_TBkYrpKb-aeyy9=1m7A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

>
> I added this patch to the next CF (2016-09) under "Miscellaneous".
>

Thanks!

> Out of curiosity, what is the motivation?

I'm the owner of Npgsql, the open-source .NET driver for PostgreSQL, which
is a binary-first driver. That is, working with types that have no binary
I/O is possible but awkward.

I hope the general direction is (or will be) to have binary I/O for all
supported types, both for compatibility with binary-first consumers such as
Npgsql and for general efficiency.


From: Shay Rojansky <roji(at)roji(dot)org>
To: Andreas Karlsson <andreas(at)proxel(dot)se>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Binary I/O for isn extension
Date: 2016-05-31 12:13:40
Message-ID: CADT4RqAiU_znq=-mzTZf5mukjmNkoaf_Qin7yen+6kjRZUCN6w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

>
> When adding new functions to an extension you need to bump the version of
> the extension by renaming the file, updating the .control file, creating an
> upgrade script, and updating the Makefile to include the new files.

Attached is a new version of the patch, adding an upgrade script and the
rest of it. Note that because, as Fabien noted, there's doesn't seem to be
a way to add send/receive functions with ALTER TYPE, I did that by updating
pg_type directly - hope that's OK.

Attachment Content-Type Size
isn-binary.patch application/octet-stream 145.4 KB

From: Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr>
To: Shay Rojansky <roji(at)roji(dot)org>
Cc: Andreas Karlsson <andreas(at)proxel(dot)se>, PostgreSQL Developers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Binary I/O for isn extension
Date: 2016-08-22 12:14:01
Message-ID: alpine.DEB.2.20.1608221412130.7102@lancre
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers


Hello Shay,

> Attached is a new version of the patch, adding an upgrade script and the
> rest of it. Note that because, as Fabien noted, there's doesn't seem to be
> a way to add send/receive functions with ALTER TYPE, I did that by updating
> pg_type directly - hope that's OK.

This patch does not apply anymore, because there as been an update in
between to mark relevant contrib functions as "parallel".

Could you update the patch?

--
Fabien.


From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr>
Cc: Shay Rojansky <roji(at)roji(dot)org>, Andreas Karlsson <andreas(at)proxel(dot)se>, PostgreSQL Developers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Binary I/O for isn extension
Date: 2016-09-28 17:04:48
Message-ID: CA+TgmoZ=1cy0qdiyeTRn7YULxiUEC_SD2CJk=hjahM0T9gVVWA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Mon, Aug 22, 2016 at 8:14 AM, Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr> wrote:
> Hello Shay,
>> Attached is a new version of the patch, adding an upgrade script and the
>> rest of it. Note that because, as Fabien noted, there's doesn't seem to be
>> a way to add send/receive functions with ALTER TYPE, I did that by
>> updating
>> pg_type directly - hope that's OK.
>
> This patch does not apply anymore, because there as been an update in
> between to mark relevant contrib functions as "parallel".
>
> Could you update the patch?

So, it's been over a month since this request, and there doesn't seem
to be an update to this patch. The CommitFest is over in 2 days, so
I've marked this "Returned with Feedback". Shay, please feel free to
resubmit for the next CommitFest.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


From: Shay Rojansky <roji(at)roji(dot)org>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr>, Andreas Karlsson <andreas(at)proxel(dot)se>, PostgreSQL Developers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Binary I/O for isn extension
Date: 2016-09-28 18:05:24
Message-ID: CADT4RqApdJEQuB8HkpCd4tDiZMHFwVzXLDd2VzjiXSiKwdC=yA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Sorry about this, I just haven't had a free moment (and it's definitely not
very high priority...)

On Wed, Sep 28, 2016 at 5:04 PM, Robert Haas <robertmhaas(at)gmail(dot)com> wrote:

> On Mon, Aug 22, 2016 at 8:14 AM, Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr>
> wrote:
> > Hello Shay,
> >> Attached is a new version of the patch, adding an upgrade script and the
> >> rest of it. Note that because, as Fabien noted, there's doesn't seem to
> be
> >> a way to add send/receive functions with ALTER TYPE, I did that by
> >> updating
> >> pg_type directly - hope that's OK.
> >
> > This patch does not apply anymore, because there as been an update in
> > between to mark relevant contrib functions as "parallel".
> >
> > Could you update the patch?
>
> So, it's been over a month since this request, and there doesn't seem
> to be an update to this patch. The CommitFest is over in 2 days, so
> I've marked this "Returned with Feedback". Shay, please feel free to
> resubmit for the next CommitFest.
>
> --
> Robert Haas
> EnterpriseDB: http://www.enterprisedb.com
> The Enterprise PostgreSQL Company
>


From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Shay Rojansky <roji(at)roji(dot)org>
Cc: Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr>, Andreas Karlsson <andreas(at)proxel(dot)se>, PostgreSQL Developers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Binary I/O for isn extension
Date: 2016-09-28 19:02:25
Message-ID: CA+TgmobC4Xhve69+WW7s+DmGmrYz0tsRqO8ET=LbPhOy5fxQ_Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Wed, Sep 28, 2016 at 2:05 PM, Shay Rojansky <roji(at)roji(dot)org> wrote:
> Sorry about this, I just haven't had a free moment (and it's definitely not
> very high priority...)

No issues, just cleaning house.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company