Skip to content

Commit 4b69c70

Browse files
committed
Support PostgreSQL 13
1 parent 3d2615d commit 4b69c70

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ PGXS := $(shell $(PG_CONFIG) --pgxs)
1313
include $(PGXS)
1414

1515
INCLUDEDIR_SERVER = $(shell $(PG_CONFIG) --includedir-server)
16-
FLOAT8PASSBYVAL = $(shell grep FLOAT8PASSBYVAL $(INCLUDEDIR_SERVER)/pg_config.h | grep -o true)
16+
# FLOAT8PASSBYVAL moved from pg_config.h to c.h in PG13
17+
FLOAT8PASSBYVAL = $(shell grep FLOAT8PASSBYVAL $(INCLUDEDIR_SERVER)/pg_config.h $(INCLUDEDIR_SERVER)/c.h | grep -o true)
1718
ifeq ($(FLOAT8PASSBYVAL),true)
1819
PASSEDBYVALUE = passedbyvalue,
1920
endif

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ Data types:
1111
* *zahl*: German numerals (eins, zwei, drei, vier, ...), long scale (10⁹ = Milliarde)
1212
* *roman*: Roman numerals (I, II, III, IV, ...)
1313

14-
Requires PostgreSQL >= 9.4 and Bison 3.
14+
Requires PostgreSQL >= 9.4 (currently up to 13) and Bison 3.
1515

16-
[![Build Status](https://travis-ci.org/ChristophBerg/postgresql-numeral.svg?branch=master)](https://travis-ci.org/ChristophBerg/postgresql-numeral)
16+
[![Build Status](https://travis-ci.org/df7cb/postgresql-numeral.svg?branch=master)](https://travis-ci.org/df7cb/postgresql-numeral)
1717

1818
Examples
1919
--------
@@ -46,7 +46,7 @@ the data types behave like bigint, just with different input/output functions.
4646
License
4747
-------
4848

49-
Copyright (C) 2017 Christoph Berg
49+
Copyright (C) 2017, 2020 Christoph Berg
5050

5151
This program is free software; you can redistribute it and/or modify
5252
it under the terms of the GNU General Public License as published by

do

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,18 @@ set -eux
44

55
export PGDATABASE=postgres
66

7-
for PGVERSION in ${*:-10 9.6 9.5 9.4}; do
7+
for PGVERSION in ${*:-13 12 11 10 9.6 9.5 9.4}; do
88
echo
99
echo "### $PGVERSION ###"
1010
PG_CONFIG=/usr/lib/postgresql/$PGVERSION/bin/pg_config
1111
export PGCLUSTER="$PGVERSION/main"
1212
export PGPORT="54${PGVERSION/./}"
13-
[ "$PGVERSION" = "9.6" ] && unset PGPORT # default version
13+
[ "$PGVERSION" = "12" ] && unset PGPORT # default version
1414

1515
make clean
1616
make PG_CONFIG=$PG_CONFIG PROFILE="-Werror"
1717
sudo make install PG_CONFIG=$PG_CONFIG
1818
psql -c "DROP EXTENSION IF EXISTS numeral CASCADE"
19-
#psql -c "CREATE EXTENSION IF NOT EXISTS numeral"
2019
if ! make installcheck REGRESS_OPTS="--use-existing --dbname=postgres" PG_CONFIG=$PG_CONFIG; then
2120
cat regression.diffs
2221
exit 1

0 commit comments

Comments
 (0)