Compare commits

...

11 Commits

Author SHA1 Message Date
jordi fita mas 44ac595b86 Update PostgreSQL version to 15, used in Debian 12 2023-06-15 12:44:41 +02:00
jordi fita mas 7ff09bfa5c Add pkg-config as build dependency 2023-01-25 01:14:38 +01:00
jordi fita mas 851dca13b9 Fix architecture from all to any 2023-01-25 01:07:41 +01:00
jordi fita mas 2cbc3efd7f Add pkg-config dependency 2023-01-24 15:23:28 +01:00
jordi fita mas ecc78c9590 Add Debian packaging 2023-01-24 15:08:30 +01:00
Peter Eisentraut 00241b96b8 CI: Remove Travis, add Cirrus 2022-05-26 17:03:29 +02:00
Peter Eisentraut 7a7849a48a Fix -Wimplicit-fallthrough=3 warning
for PostgreSQL 13
2020-05-21 08:36:08 +02:00
Peter Eisentraut 969031cd25 Travis CI: Fix build script
We need to pass PG_CONFIG to "sudo make install" because sudo clears
the PATH and so it might run the install step against another version.
2020-05-21 08:22:45 +02:00
Peter Eisentraut 9277ca4d9c Travis CI: Update to bionic, add new PostgreSQL versions 2019-12-28 10:28:52 +01:00
Peter Eisentraut e5d25a8fe9 Travis CI: Update setup
Update PGDG repo setup, update to xenial, use inline scripts instead
of external gists.
2019-04-24 11:43:45 +02:00
Peter Eisentraut 437ae00801 Travis CI: Add new PostgreSQL versions 2019-04-23 18:21:16 +02:00
10 changed files with 166 additions and 14 deletions

35
.cirrus.yml Normal file
View File

@ -0,0 +1,35 @@
env:
DEBIAN_FRONTEND: noninteractive
LANG: C
task:
name: Linux (Debian/Ubuntu)
matrix:
- container:
image: ubuntu:20.04
env:
matrix:
- PGVERSION: 14
- PGVERSION: 13
- PGVERSION: 12
- PGVERSION: 11
- PGVERSION: 10
- PGVERSION: 9.6
- PGVERSION: 9.5
- PGVERSION: 9.4
- PGVERSION: 9.3
setup_script:
- apt-get update
- apt-get -y install curl gnupg lsb-release
- curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
- echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main" | tee /etc/apt/sources.list.d/pgdg.list
- apt-get update
- apt-get -y install gcc liburiparser-dev make pkg-config postgresql-$PGVERSION postgresql-server-dev-$PGVERSION
- pg_createcluster --start $PGVERSION test -p 55435 -- -A trust
build_script:
- PATH=/usr/lib/postgresql/$PGVERSION/bin:$PATH
- make all
- make install
test_script:
- PATH=/usr/lib/postgresql/$PGVERSION/bin:$PATH
- PGPORT=55435 make installcheck PGUSER=postgres

View File

@ -1,14 +0,0 @@
language: c
before_install:
- wget https://gist.github.com/petere/5893799/raw/apt.postgresql.org.sh
- wget https://gist.github.com/petere/6023944/raw/pg-travis-test.sh
- sudo sh ./apt.postgresql.org.sh
install:
- sudo apt-get install -qq liburiparser-dev
env:
- PGVERSION=9.1
- PGVERSION=9.2
- PGVERSION=9.3
- PGVERSION=9.4
script:
- bash ./pg-travis-test.sh

23
debian/changelog vendored Normal file
View File

@ -0,0 +1,23 @@
pguri (1.20151224-4) bookworm; urgency=medium
* Update PostgreSQL version to 15
-- jordi fita mas <jordi@tandem.blog> Thu, 15 Jun 2023 10:44:11 +0000
pguri (1.20151224-3) bullseye; urgency=medium
* Fix architecture from all to any
-- jordi fita mas <jordi@tandem.blog> Wed, 25 Jan 2023 00:07:13 +0000
pguri (1.20151224-2) bullseye; urgency=medium
* Add pkg-config dependency
-- jordi fita mas <jordi@tandem.blog> Tue, 24 Jan 2023 14:21:22 +0000
pguri (1.20151224-1) bullseye; urgency=medium
* Add Debian packaging
-- jordi fita mas <jordi@tandem.blog> Tue, 24 Jan 2023 13:07:39 +0000

35
debian/control vendored Normal file
View File

@ -0,0 +1,35 @@
Source: pguri
Section: database
Priority: optional
Maintainer: jordi fita mas <jordi@tandem.blog>
Build-Depends:
debhelper-compat (= 13),
postgresql-all (>= 217~),
liburiparser-dev,
pkg-config
Standards-Version: 4.6.0
Vcs-Browser: https://github.com/petere/pguri
Vcs-Git: https://github.com/petere/pguri.git
Homepage: https://github.com/petere/pguri
Rules-Requires-Root: no
Package: postgresql-15-pguri
Architecture: any
Depends:
${shlibs:Depends},
${misc:Depends},
postgresql-15
description: uri type for PostgreSQL
This is an extension for PostgreSQL that provides a uri data type. Advantages
over using plain text for storing URIs include:
.
* URI syntax checking,
* functions for extracting URI components, and
* human-friendly sorting.
.
The actual URI parsing is provided by the uriparser library, which supports
URI syntax as per RFC 3986.
.
Note that this might not be the right data type to use if you want to store
user-provided URI data, such as HTTP referrers, since they might contain
arbitrary junk.

35
debian/control.in vendored Normal file
View File

@ -0,0 +1,35 @@
Source: pguri
Section: database
Priority: optional
Maintainer: jordi fita mas <jordi@tandem.blog>
Build-Depends:
debhelper-compat (= 13),
postgresql-all (>= 217~),
liburiparser-dev,
pkg-config
Standards-Version: 4.6.0
Vcs-Browser: https://github.com/petere/pguri
Vcs-Git: https://github.com/petere/pguri.git
Homepage: https://github.com/petere/pguri
Rules-Requires-Root: no
Package: postgresql-PGVERSION-pguri
Architecture: any
Depends:
${shlibs:Depends},
${misc:Depends},
postgresql-PGVERSION
description: uri type for PostgreSQL
This is an extension for PostgreSQL that provides a uri data type. Advantages
over using plain text for storing URIs include:
.
* URI syntax checking,
* functions for extracting URI components, and
* human-friendly sorting.
.
The actual URI parsing is provided by the uriparser library, which supports
URI syntax as per RFC 3986.
.
Note that this might not be the right data type to use if you want to store
user-provided URI data, such as HTTP referrers, since they might contain
arbitrary junk.

29
debian/copyright vendored Normal file
View File

@ -0,0 +1,29 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Source: https://github.com/petere/pguri
Upstream-Name: pguri
Upstream-Contact: peter@eisentraut.org
Files: *
Copyright: 2015 Peter Eisentraut
License:
Permission to use, copy, modify, and distribute this software and its
documentation for any purpose, without fee, and without a written agreement is
hereby granted, provided that the above copyright notice and this paragraph and
the following two paragraphs appear in all copies.
.
IN NO EVENT SHALL THE AUTHORS BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT,
SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOST PROFITS, ARISING
OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE AUTHORS HAVE
BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.
THE AUTHORS SPECIFICALLY DISCLAIM ANY WARRANTIES, INCLUDING, BUT NOT LIMITED
TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN "AS IS" BASIS, AND THE
AUTHORS HAVE NO OBLIGATIONS TO PROVIDE MAINTENANCE, SUPPORT, UPDATES,
ENHANCEMENTS, OR MODIFICATIONS.
Files: debian/*
Copyright: 2023 jordi fita mas
License:
This debian package is distributed under the same license as the source
package.

1
debian/pgversions vendored Normal file
View File

@ -0,0 +1 @@
13+

6
debian/rules vendored Executable file
View File

@ -0,0 +1,6 @@
#!/usr/bin/make -f
include /usr/share/postgresql-common/pgxs_debian_control.mk
%:
dh $@ --with pgxs_loop

1
debian/source/format vendored Normal file
View File

@ -0,0 +1 @@
3.0 (quilt)

1
uri.c
View File

@ -42,6 +42,7 @@ parse_uri(const char *s, UriUriA *urip)
(errcode(ERRCODE_INVALID_TEXT_REPRESENTATION), (errcode(ERRCODE_INVALID_TEXT_REPRESENTATION),
errmsg("invalid input syntax for type uri at or near \"%s\"", errmsg("invalid input syntax for type uri at or near \"%s\"",
state.errorPos))); state.errorPos)));
break;
default: default:
elog(ERROR, "liburiparser error code %d", state.errorCode); elog(ERROR, "liburiparser error code %d", state.errorCode);
} }