Skip to content

Commit 0022759

Browse files
Merge pull request #24 from rustprooflabs/pg14
Add Postgres 14 support
2 parents 3b0766e + 3b61256 commit 0022759

File tree

8 files changed

+32
-18
lines changed

8 files changed

+32
-18
lines changed

ADVANCED-INSTALL.md

+7
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,13 @@ Another option to try.
194194
cargo clean
195195
```
196196

197+
If you're doing the above, you probably should remove the `Cargo.lock`
198+
file while you're at it.
199+
200+
```bash
201+
rm Cargo.lock
202+
```
203+
197204

198205
## Non-standard In Docker
199206

Cargo.toml

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "pgdd"
3-
version = "0.4.0-dev"
3+
version = "0.4.0-rc4"
44
edition = "2018"
55
description = "In-database (PostgreSQL) data dictionary providing database introspection via standard SQL query syntax."
66

@@ -10,11 +10,12 @@ crate-type = ["cdylib", "rlib"]
1010
#crate-type = ["cdylib"]
1111

1212
[features]
13-
default = ["pg13"]
13+
default = ["pg14"]
1414
pg10 = ["pgx/pg10"]
1515
pg11 = ["pgx/pg11"]
1616
pg12 = ["pgx/pg12"]
1717
pg13 = ["pgx/pg13"]
18+
pg14 = ["pgx/pg14"]
1819
pg_test = []
1920

2021
[dependencies]

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ The extension is built on the Rust [pgx framework](https://github.com/zombodb/pg
99

1010
## Compatibility
1111

12-
PgDD has been tested to work for PostgreSQL 10 through 13.
12+
PgDD has been tested to work for PostgreSQL 10 through 14.
1313

1414

1515
## Upgrading from <= v0.3
@@ -54,9 +54,9 @@ Binaries are available for Ubuntu 20.04 (bionic) and Ubuntu 21.04 (hirsute).
5454
Download and install.
5555

5656
```bash
57-
wget https://github.com/rustprooflabs/pgdd/releases/download/0.4.0.rc3/pgdd_0.4.0.rc3_focal_pg13_amd64.deb
57+
wget https://github.com/rustprooflabs/pgdd/releases/download/0.4.0-rc4/pgdd_0.4.0-rc4_focal_pg13_amd64.deb
5858

59-
sudo dpkg -i ./pgdd_0.4.0.rc3_focal_pg13_amd64.deb
59+
sudo dpkg -i ./pgdd_0.4.0-rc4_focal_pg13_amd64.deb
6060
```
6161

6262
In your database.
@@ -79,7 +79,7 @@ SELECT extname, extversion
7979
┌─────────┬────────────┐
8080
│ extname │ extversion │
8181
╞═════════╪════════════╡
82-
│ pgdd │ 0.4.0.rc3
82+
│ pgdd │ 0.4.0-rc4
8383
└─────────┴────────────┘
8484
```
8585

build/build.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ LOGDIR=${BASE}/target/logs
2323
ARTIFACTDIR=${BASE}/target/artifacts
2424
PGXVERSION=0.2.0-beta.1
2525

26-
PG_VERS=("pg10" "pg11" "pg12" "pg13")
27-
#PG_VERS=("pg13")
26+
PG_VERS=("pg10" "pg11" "pg12" "pg13" "pg14")
27+
#PG_VERS=("pg14")
2828

2929
echo $BASE
3030
echo $VERSION

build/docker/pgdd-ubuntu-focal/Dockerfile

+7-4
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ ARG DEBIAN_FRONTEND=noninteractive
1414
RUN apt-get update && apt-get upgrade -y && apt-get install -y make wget curl gnupg git
1515
RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ focal-pgdg main" >> /etc/apt/sources.list.d/pgdg.list \
1616
&& wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
17-
RUN apt-get update
17+
RUN apt-get update && apt-get upgrade -y
1818
RUN apt-get install -y \
1919
clang-10 llvm-10 clang libz-dev strace pkg-config \
2020
libxml2 libxml2-dev libreadline8 libreadline-gplv2-dev \
@@ -26,7 +26,8 @@ RUN apt-get install -y \
2626
postgresql-server-dev-10 \
2727
postgresql-server-dev-11 \
2828
postgresql-server-dev-12 \
29-
postgresql-server-dev-13
29+
postgresql-server-dev-13 \
30+
postgresql-server-dev-14
3031

3132

3233
RUN gem install --no-document fpm
@@ -49,10 +50,12 @@ RUN /bin/bash rustup.sh -y \
4950
RUN mkdir -p /home/${USER}/.pgx/data-10 \
5051
&& mkdir /home/${USER}/.pgx/data-11 \
5152
&& mkdir /home/${USER}/.pgx/data-12 \
52-
&& mkdir /home/${USER}/.pgx/data-13
53+
&& mkdir /home/${USER}/.pgx/data-13 \
54+
&& mkdir /home/${USER}/.pgx/data-14
5355

5456
RUN cargo pgx init \
5557
--pg10=/usr/lib/postgresql/10/bin/pg_config \
5658
--pg11=/usr/lib/postgresql/11/bin/pg_config \
5759
--pg12=/usr/lib/postgresql/12/bin/pg_config \
58-
--pg13=/usr/lib/postgresql/13/bin/pg_config
60+
--pg13=/usr/lib/postgresql/13/bin/pg_config \
61+
--pg14=/usr/lib/postgresql/14/bin/pg_config

build/docker/pgdd-ubuntu-hirsute/Dockerfile

+7-4
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ ARG DEBIAN_FRONTEND=noninteractive
1414
RUN apt-get update && apt-get upgrade -y && apt-get install -y make wget curl gnupg git
1515
RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ focal-pgdg main" >> /etc/apt/sources.list.d/pgdg.list \
1616
&& wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
17-
RUN apt-get update
17+
RUN apt-get update && apt-get upgrade -y
1818
RUN apt-get install -y \
1919
clang-12 llvm-12 clang libz-dev strace pkg-config \
2020
libxml2 libxml2-dev libreadline8 libreadline-dev \
@@ -26,7 +26,8 @@ RUN apt-get install -y \
2626
postgresql-server-dev-10 \
2727
postgresql-server-dev-11 \
2828
postgresql-server-dev-12 \
29-
postgresql-server-dev-13
29+
postgresql-server-dev-13 \
30+
postgresql-server-dev-14
3031

3132

3233
RUN gem install --no-document fpm
@@ -49,10 +50,12 @@ RUN /bin/bash rustup.sh -y \
4950
RUN mkdir -p /home/${USER}/.pgx/data-10 \
5051
&& mkdir /home/${USER}/.pgx/data-11 \
5152
&& mkdir /home/${USER}/.pgx/data-12 \
52-
&& mkdir /home/${USER}/.pgx/data-13
53+
&& mkdir /home/${USER}/.pgx/data-13 \
54+
&& mkdir /home/${USER}/.pgx/data-14
5355

5456
RUN cargo pgx init \
5557
--pg10=/usr/lib/postgresql/10/bin/pg_config \
5658
--pg11=/usr/lib/postgresql/11/bin/pg_config \
5759
--pg12=/usr/lib/postgresql/12/bin/pg_config \
58-
--pg13=/usr/lib/postgresql/13/bin/pg_config
60+
--pg13=/usr/lib/postgresql/13/bin/pg_config \
61+
--pg14=/usr/lib/postgresql/14/bin/pg_config

pgdd.control

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
comment = 'An in-database data dictionary providing database introspection via standard SQL query syntax. Developed using pgx (https://github.com/zombodb/pgx).'
2-
default_version = '0.4.0.rc3'
2+
default_version = '0.4.0-rc4'
33
module_pathname = '$libdir/pgdd'
44
relocatable = false
55
schema = dd

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ fn columns(
7777
{
7878
#[cfg(any(feature = "pg10", feature="pg11"))]
7979
let query = include_str!("sql/function_query/columns-pre-12.sql");
80-
#[cfg(any(feature = "pg12", feature="pg13"))]
80+
#[cfg(any(feature = "pg12", feature="pg13", feature="pg14"))]
8181
let query = include_str!("sql/function_query/columns-12.sql");
8282

8383
let mut results = Vec::new();

0 commit comments

Comments
 (0)