Skip to content

Commit beabffd

Browse files
committed
added logerrors extension for extended image
1 parent 8189138 commit beabffd

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Available PostgreSQL versions: 9.6, 10, 11, 12, 13. Extensions:
1414
- [bg_mon](https://github.com/CyberDem0n/bg_mon)
1515
- [Citus](https://github.com/citusdata/citus)
1616
- [HypoPG](https://github.com/HypoPG/hypopg)
17+
- [logerrors](https://github.com/munakoiso/logerrors)
1718
- [pg_auth_mon](https://github.com/RafiaSabih/pg_auth_mon)
1819
- [pg_cron](https://github.com/citusdata/pg_cron)
1920
- [pg_hint_plan](https://pghintplan.osdn.jp/pg_hint_plan.html)
@@ -75,6 +76,7 @@ The PostgreSQL 13 image is now missing the following extensions (they will be ad
7576
| intarray | 1.2 | functions, operators, and index support for 1-D arrays of integers |
7677
| isn | 1.2 | data types for international product numbering standards |
7778
| lo | 1.1 | Large Object maintenance |
79+
| logerrors | 1.1 | Function for collecting statistics about messages in logfile
7880
| ltree | 1.1 | data type for hierarchical tree-like structures |
7981
| moddatetime | 1.0 | functions for tracking last modification time |
8082
| pageinspect | 1.7 | inspect the contents of database pages at a low level |

extended/Dockerfile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,13 @@ RUN apt-get clean && rm -rf /var/lib/apt/lists/partial \
8484
# set_user extension
8585
&& git clone https://github.com/pgaudit/set_user.git \
8686
&& cd set_user && make USE_PGXS=1 && make USE_PGXS=1 install \
87-
# WAL-G
87+
# errorlogs extension
88+
&& if [ $(echo "$PG_SERVER_VERSION > 9.6" | /usr/bin/bc) = "1" ]; then \
89+
cd /tmp && wget https://github.com/munakoiso/logerrors/archive/v1.1.tar.gz \
90+
&& tar -xf v1.1.tar.gz && rm v1.1.tar.gz && cd logerrors-1.1 \
91+
&& USE_PGXS=1 make && USE_PGXS=1 make install; \
92+
fi \
93+
# WAL-G
8894
&& wget --quiet -O /tmp/wal-g.linux-amd64.tar.gz "https://github.com/wal-g/wal-g/releases/download/v${WALG_VERSION}/wal-g.linux-amd64.tar.gz" \
8995
&& tar -zxvf /tmp/wal-g.linux-amd64.tar.gz && mv wal-g /usr/local/bin/ \
9096
# remove all auxilary packages to reduce final image size

0 commit comments

Comments
 (0)