Skip to content

Commit 3917b63

Browse files
committed
Remove support for postgres 9.4
This version has been EOL for a very long time, and supporting it just became too expensive. The main reason to drop this versions are: - pg_event_trigger_ddl_commands() is not there, making it impossible to detect what extension has just been created or dropped in an event trigger. Previous versions of PoWA were blindly trying to register or unregister all supported extensions when any extension is created or dropped, but that's not a sensible approach and PoWA 5 checks for the actual extension - Using named operators in function calls only works with the old (and not standard) syntax ":=" rather than "=>". Having to stick with the old syntax is eventually going to byte us - ASSERT is not supported in plpgsql. While not critical it's nice to have and adding some client-side layer doesn't make sense
1 parent 48dc95a commit 3917b63

File tree

3 files changed

+21
-21
lines changed

3 files changed

+21
-21
lines changed

INSTALL.md

+18-18
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ Read [README.md](https://github.com/powa-team/powa/blob/master/README.md) and
55
[the official documentation](http://powa.readthedocs.io/) for further details
66
about PoWA.
77

8-
PoWA requires PostgreSQL 9.4 or more. This documentation assumes you're using
9-
the 9.4 version of PostgreSQL.
8+
PoWA requires PostgreSQL 9.5 or more. This documentation assumes you're using
9+
the version 15 of PostgreSQL.
1010

1111
The following documentation describes the detailed installation steps to install
1212
PoWA.
@@ -18,23 +18,23 @@ Download powa-archivist from the website
1818
The latest stable version should be used. It can be downloaded from
1919
[github](https://github.com/powa-team/powa-archivist/releases/latest).
2020

21-
This documentation assumes that the latest version is 3.0.0, and you downloaded
21+
This documentation assumes that the version is 4.2.2, and you downloaded
2222
the .zip file.
2323

2424
Unpack the downloaded file
2525
--------------------------
2626

2727
```
2828
cd /usr/src
29-
unzip powa-REL_3_0_0.zip
29+
unzip powa-REL_4_2_2.zip
3030
```
3131

3232
Compile and install the software
3333
--------------------------------
3434

3535
Before proceeding, be sure to have a compiler installed and the appropriate PostgreSQL development packages. Something like
3636
```
37-
apt-get install postgresql-server-dev-9.4
37+
apt-get install postgresql-server-dev-15
3838
```
3939
or
4040
```
@@ -43,14 +43,14 @@ yum install postgresql94-devel
4343

4444
Then:
4545
```
46-
cd /usr/src/powa-REL_3_0_0
46+
cd /usr/src/powa-REL_4_2_2
4747
make
4848
```
4949

5050
If everything goes fine, you will have this kind of output :
5151
```
52-
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -g -fpic -I. -I. -I/home/thomas/postgresql/postgresql-9.3.4/include/server -I/home/thomas/postgresql/postgresql-9.4.4/include/internal -D_GNU_SOURCE -I/usr/include/libxml2 -c -o powa.o powa.c
53-
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -g -fpic -L/home/thomas/postgresql/postgresql-9.3.4/lib -Wl,--as-needed -Wl,-rpath,'/home/thomas/postgresql/postgresql-9.4.4/lib',--enable-new-dtags -shared -o powa.so powa.o
52+
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -g -fpic -I. [...] -c -o powa.o powa.c
53+
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -g -fpic [...] -shared -o powa.so powa.o
5454
```
5555

5656
Install the software :
@@ -67,14 +67,14 @@ make install
6767

6868
It should output something like the following :
6969
```
70-
/bin/mkdir -p '/usr/pgsql-9.4/share/extension'
71-
/bin/mkdir -p '/usr/pgsql-9.4/share/extension'
72-
/bin/mkdir -p '/usr/pgsql-9.4/lib'
73-
/bin/mkdir -p '/usr/pgsql-9.4/share/doc/extension'
74-
/usr/bin/install -c -m 644 ./powa.control '/usr/pgsql-9.4/share/extension/'
75-
/usr/bin/install -c -m 644 ./powa--2.0.1.sql ./powa--2.0-2.0.1.sql ./powa--3.0.0.sql '/usr/pgsql-9.4/share/extension/'
76-
/usr/bin/install -c -m 755 powa.so '/usr/pgsql-9.4/postgresql-9.4.4/lib/'
77-
/usr/bin/install -c -m 644 ./README.md '/usr/pgsql-9.4/share/doc/extension/'
70+
/bin/mkdir -p '/usr/pgsql-15/share/extension'
71+
/bin/mkdir -p '/usr/pgsql-15/share/extension'
72+
/bin/mkdir -p '/usr/pgsql-15/lib'
73+
/bin/mkdir -p '/usr/pgsql-15/share/doc/extension'
74+
/usr/bin/install -c -m 644 ./powa.control '/usr/pgsql-15/share/extension/'
75+
/usr/bin/install -c -m 644 ./powa--2.0.1.sql ./powa--2.0-2.0.1.sql ./powa--3.0.0.sql '/usr/pgsql-15/share/extension/'
76+
/usr/bin/install -c -m 755 powa.so '/usr/pgsql-15/postgresql-15.7/lib/'
77+
/usr/bin/install -c -m 644 ./README.md '/usr/pgsql-15/share/doc/extension/'
7878
```
7979

8080

@@ -124,7 +124,7 @@ Change the `shared_preload_libraries` appropriately :
124124
shared_preload_libraries = 'powa,pg_stat_statements'# (change requires restart)
125125
```
126126

127-
If possible (check with pg_test_timing), activate track_io_timing on your instance, in postgresql.conf :
127+
If possible (check with pg_test_timing), activate track_io_timing on your instance, in postgresql.conf:
128128

129129
```
130130
track_io_timing = on
@@ -174,5 +174,5 @@ update to PoWA 3.0.0. In this case, you need to drop and create the extension.
174174
Next, you will need to restart PostgreSQL in order to take account of the
175175
updated background worker. As root, run the following command :
176176
```
177-
service postgresql-9.4 restart
177+
service postgresql-15 restart
178178
```

debian/pgversions

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
9.4+
1+
9.5+

powa.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212

1313
#include "postgres.h"
1414

15-
#if PG_VERSION_NUM < 90400
16-
#error "PoWA requires PostgreSQL 9.4 or later"
15+
#if PG_VERSION_NUM < 90500
16+
#error "PoWA requires PostgreSQL 9.5 or later"
1717
#endif
1818

1919
/* For a bgworker */

0 commit comments

Comments
 (0)