<feed xmlns='http://www.w3.org/2005/Atom'>
<title>postgresql.git/src/test/regress/sql/inet.sql, branch master</title>
<subtitle>This is the main PostgreSQL git repository.</subtitle>
<id>http://git.postgresql.org/cgit/postgresql.git/atom?h=master</id>
<link rel='self' href='http://git.postgresql.org/cgit/postgresql.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='http://git.postgresql.org/cgit/postgresql.git/'/>
<updated>2025-01-28T23:49:48Z</updated>
<entry>
<title>Improve test coverage of network address functions</title>
<updated>2025-01-28T23:49:48Z</updated>
<author>
<name>Michael Paquier</name>
</author>
<published>2025-01-28T23:49:48Z</published>
<link rel='alternate' type='text/html' href='http://git.postgresql.org/cgit/postgresql.git/commit/?id=4f071349c0c28543fa8b84a5ce0b2f619c089ace'/>
<id>urn:sha1:4f071349c0c28543fa8b84a5ce0b2f619c089ace</id>
<content type='text'>
The following functions were not covered by any tests:
- abbrev(inet)
- set_masklen(cidr)
- set_masklen(inet)
- netmask(inet)
- hostmask(inet)

While on it, this improves the output of some of the existing queries in
the test inet to use better aliases.

Author: Aleksander Alekseev
Reviewed-by: Jacob Champion, Keisuke Kuroda, Tom Lane
Discussion: https://postgr.es/m/CAJ7c6TOyZ9bGNrDK6Z3Q0gr9ow8ZpOm+=+01mpE0dsdH4C+u9A@mail.gmail.com
</content>
</entry>
<entry>
<title>Rework pg_input_error_message(), now renamed pg_input_error_info()</title>
<updated>2023-02-27T23:04:13Z</updated>
<author>
<name>Michael Paquier</name>
</author>
<published>2023-02-27T23:04:13Z</published>
<link rel='alternate' type='text/html' href='http://git.postgresql.org/cgit/postgresql.git/commit/?id=b8da37b3ada2e547983538b3e49f8079f85ce120'/>
<id>urn:sha1:b8da37b3ada2e547983538b3e49f8079f85ce120</id>
<content type='text'>
pg_input_error_info() is now a SQL function able to return a row with
more than just the error message generated for incorrect data type
inputs when these are able to handle soft failures, returning more
contents of ErrorData, as of:
- The error message (same as before).
- The error detail, if set.
- The error hint, if set.
- SQL error code.

All the regression tests that relied on pg_input_error_message() are
updated to reflect the effects of the rename.

Per discussion with Tom Lane and Andrew Dunstan.

Author: Nathan Bossart
Discussion: https://postgr.es/m/139a68e1-bd1f-a9a7-b5fe-0be9845c6311@dunslane.net
</content>
</entry>
<entry>
<title>Convert a few more datatype input functions to report errors softly.</title>
<updated>2022-12-14T18:22:08Z</updated>
<author>
<name>Tom Lane</name>
</author>
<published>2022-12-14T18:22:08Z</published>
<link rel='alternate' type='text/html' href='http://git.postgresql.org/cgit/postgresql.git/commit/?id=17407a8eaa2afa8ac0de4b0a494f33d8eb7a98bd'/>
<id>urn:sha1:17407a8eaa2afa8ac0de4b0a494f33d8eb7a98bd</id>
<content type='text'>
Convert bit_in, varbit_in, inet_in, cidr_in, macaddr_in, and
macaddr8_in to the new style.

Amul Sul, minor mods by me

Discussion: https://postgr.es/m/CAAJ_b97KeDWUdpTKGOaFYPv0OicjOu6EW+QYWj-Ywrgj_aEy1g@mail.gmail.com
</content>
</entry>
<entry>
<title>Add test case for abbrev(cidr)</title>
<updated>2021-02-11T08:56:14Z</updated>
<author>
<name>Peter Eisentraut</name>
</author>
<published>2021-02-11T08:56:14Z</published>
<link rel='alternate' type='text/html' href='http://git.postgresql.org/cgit/postgresql.git/commit/?id=69273c8f88d7e6295ed7b38114969fa3ea03eff2'/>
<id>urn:sha1:69273c8f88d7e6295ed7b38114969fa3ea03eff2</id>
<content type='text'>
This will in particular add some good test coverage for
inet_cidr_ntop.c, which was previously completely uncovered.

Reviewed-by: Tom Lane &lt;tgl@sss.pgh.pa.us&gt;
Discussion: https://www.postgresql.org/message-id/flat/cb0c4662-4596-dab4-7f64-839c5e8582c8%40enterprisedb.com
</content>
</entry>
<entry>
<title>Clean up ancient test style</title>
<updated>2020-12-15T21:03:39Z</updated>
<author>
<name>Peter Eisentraut</name>
</author>
<published>2020-12-15T20:54:06Z</published>
<link rel='alternate' type='text/html' href='http://git.postgresql.org/cgit/postgresql.git/commit/?id=c06d6aa4c35177655e0fd4acaca888a73c3f9845'/>
<id>urn:sha1:c06d6aa4c35177655e0fd4acaca888a73c3f9845</id>
<content type='text'>
Many older tests where written in a style like

    SELECT '' AS two, i.* FROM INT2_TBL

where the first column indicated the number of expected result rows.
This has gotten increasingly out of date, as the test data fixtures
have expanded, so a lot of these were wrong and misleading.  Moreover,
this style isn't really necessary, since the psql output already shows
the number of result rows.

To clean this up, remove all those extra columns.

Discussion: https://www.postgresql.org/message-id/flat/1a25312b-2686-380d-3c67-7a69094a999f%40enterprisedb.com
</content>
</entry>
<entry>
<title>Add sort support routine for the inet data type.</title>
<updated>2019-08-01T16:34:14Z</updated>
<author>
<name>Peter Geoghegan</name>
</author>
<published>2019-08-01T16:34:14Z</published>
<link rel='alternate' type='text/html' href='http://git.postgresql.org/cgit/postgresql.git/commit/?id=71dcd7438664d81235c72337cbbbfa780f7a0630'/>
<id>urn:sha1:71dcd7438664d81235c72337cbbbfa780f7a0630</id>
<content type='text'>
Add sort support for inet, including support for abbreviated keys.
Testing has shown that this reduces the time taken to sort medium to
large inet/cidr inputs by ~50-60% in realistic cases.

Author: Brandur Leach
Reviewed-By: Peter Geoghegan, Edmund Horner
Discussion: https://postgr.es/m/CABR_9B-PQ8o2MZNJ88wo6r-NxW2EFG70M96Wmcgf99G6HUQ3sw@mail.gmail.com
</content>
</entry>
<entry>
<title>Allow extensions to generate lossy index conditions.</title>
<updated>2019-02-12T02:26:14Z</updated>
<author>
<name>Tom Lane</name>
</author>
<published>2019-02-12T02:26:08Z</published>
<link rel='alternate' type='text/html' href='http://git.postgresql.org/cgit/postgresql.git/commit/?id=74dfe58a5927b22c744b29534e67bfdd203ac028'/>
<id>urn:sha1:74dfe58a5927b22c744b29534e67bfdd203ac028</id>
<content type='text'>
For a long time, indxpath.c has had the ability to extract derived (lossy)
index conditions from certain operators such as LIKE.  For just as long,
it's been obvious that we really ought to make that capability available
to extensions.  This commit finally accomplishes that, by adding another
API for planner support functions that lets them create derived index
conditions for their functions.  As proof of concept, the hardwired
"special index operator" code formerly present in indxpath.c is pushed
out to planner support functions attached to LIKE and other relevant
operators.

A weak spot in this design is that an extension needs to know OIDs for
the operators, datatypes, and opfamilies involved in the transformation
it wants to make.  The core-code prototypes use hard-wired OID references
but extensions don't have that option for their own operators etc.  It's
usually possible to look up the required info, but that may be slow and
inconvenient.  However, improving that situation is a separate task.

I want to do some additional refactorization around selfuncs.c, but
that also seems like a separate task.

Discussion: https://postgr.es/m/15193.1548028093@sss.pgh.pa.us
</content>
</entry>
<entry>
<title>Create an SP-GiST opclass for inet/cidr.</title>
<updated>2016-08-23T19:16:30Z</updated>
<author>
<name>Tom Lane</name>
</author>
<published>2016-08-23T19:16:21Z</published>
<link rel='alternate' type='text/html' href='http://git.postgresql.org/cgit/postgresql.git/commit/?id=77e2906821e2aec3c0807866a84c2934feeac8be'/>
<id>urn:sha1:77e2906821e2aec3c0807866a84c2934feeac8be</id>
<content type='text'>
This seems to offer significantly better search performance than the
existing GiST opclass for inet/cidr, at least on data with a wide mix
of network mask lengths.  (That may suggest that the data splitting
heuristics in the GiST opclass could be improved.)

Emre Hasegeli, with mostly-cosmetic adjustments by me

Discussion: &lt;CAE2gYzxtth9qatW_OAqdOjykS0bxq7AYHLuyAQLPgT7H9ZU0Cw@mail.gmail.com&gt;
</content>
</entry>
<entry>
<title>Add geometry/range functions to support BRIN inclusion</title>
<updated>2015-05-05T18:22:24Z</updated>
<author>
<name>Alvaro Herrera</name>
</author>
<published>2015-05-05T18:22:24Z</published>
<link rel='alternate' type='text/html' href='http://git.postgresql.org/cgit/postgresql.git/commit/?id=3b6db1f445e14bd189ebc99ce1e5535a1c624613'/>
<id>urn:sha1:3b6db1f445e14bd189ebc99ce1e5535a1c624613</id>
<content type='text'>
This commit adds the following functions:
    box(point) -&gt; box
    bound_box(box, box) -&gt; box
    inet_same_family(inet, inet) -&gt; bool
    inet_merge(inet, inet) -&gt; cidr
    range_merge(anyrange, anyrange) -&gt; anyrange

The first of these is also used to implement a new assignment cast from
point to box.

These functions are the first part of a base to implement an "inclusion"
operator class for BRIN, for multidimensional data types.

Author: Emre Hasegeli
Reviewed by: Andreas Karlsson
</content>
</entry>
<entry>
<title>Add index-only scan support to inet GiST opclass.</title>
<updated>2015-03-28T13:11:53Z</updated>
<author>
<name>Heikki Linnakangas</name>
</author>
<published>2015-03-28T13:11:53Z</published>
<link rel='alternate' type='text/html' href='http://git.postgresql.org/cgit/postgresql.git/commit/?id=3a20b0e7b6dae48cd6be1257e9017663f1402b91'/>
<id>urn:sha1:3a20b0e7b6dae48cd6be1257e9017663f1402b91</id>
<content type='text'>
Andreas Karlsson
</content>
</entry>
</feed>
