Compare commits
11 Commits
1.20151224
...
master
Author | SHA1 | Date |
---|---|---|
|
44ac595b86 | |
|
7ff09bfa5c | |
|
851dca13b9 | |
|
2cbc3efd7f | |
|
ecc78c9590 | |
|
00241b96b8 | |
|
7a7849a48a | |
|
969031cd25 | |
|
9277ca4d9c | |
|
e5d25a8fe9 | |
|
437ae00801 |
|
@ -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
|
14
.travis.yml
14
.travis.yml
|
@ -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
|
|
|
@ -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
|
|
@ -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.
|
|
@ -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.
|
|
@ -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.
|
|
@ -0,0 +1 @@
|
||||||
|
13+
|
|
@ -0,0 +1,6 @@
|
||||||
|
#!/usr/bin/make -f
|
||||||
|
|
||||||
|
include /usr/share/postgresql-common/pgxs_debian_control.mk
|
||||||
|
|
||||||
|
%:
|
||||||
|
dh $@ --with pgxs_loop
|
|
@ -0,0 +1 @@
|
||||||
|
3.0 (quilt)
|
1
uri.c
1
uri.c
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue