-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
sergey grinko
committed
Feb 14, 2024
1 parent
7be47cd
commit 58e463e
Showing
155 changed files
with
8,169 additions
and
546 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,5 +20,5 @@ services: | |
EMAIL_SERVER: "mail.company.ru" | ||
EMAIL_HOSTNAME: "[email protected]" | ||
BACKUP_THREADS: "4" | ||
BACKUP_MODE: "page" | ||
BACKUP_MODE: "" | ||
BACKUP_STREAM: "yes" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
select 'GRANT EXECUTE ON FUNCTION mamonsu.' || proname || '() TO mamonsu;' from pg_proc where pronamespace = 'mamonsu'::regnamespace \gexec | ||
select 'GRANT EXECUTE ON FUNCTION mamonsu.' || oid::regprocedure || ' TO mamonsu;' from pg_proc where pronamespace = 'mamonsu'::regnamespace \gexec |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
# https://hub.docker.com/r/postgis/postgis | ||
# https://github.com/postgis/docker-postgis | ||
# | ||
FROM postgres:12.17 | ||
FROM postgres:12.18 | ||
|
||
LABEL maintainer="Sergey Grinko <[email protected]>" | ||
|
||
|
@@ -16,7 +16,7 @@ ENV BACKUP_PATH /mnt/pgbak | |
ENV POSTGRES_INITDB_ARGS "--locale=ru_RU.UTF8 --data-checksums" | ||
ENV RUM_VERSION 1.3.13 | ||
|
||
RUN localedef -i ru_RU -c -f UTF-8 -A /usr/share/locale/locale.alias ru_RU.UTF-8 \ | ||
RUN echo ru_RU.UTF-8 UTF-8 >> /etc/locale.gen; locale-gen \ | ||
&& apt-get update \ | ||
&& apt-get install -y --no-install-recommends ca-certificates jq wget freetds-dev freetds-common git make gcc postgresql-server-dev-$PG_MAJOR libicu-dev sendemail htop mc systemtap-sdt-dev vim \ | ||
# подключаем репозитарий архивной утилиты | ||
|
@@ -64,7 +64,7 @@ RUN localedef -i ru_RU -c -f UTF-8 -A /usr/share/locale/locale.alias ru_RU.UTF-8 | |
&& make USE_PGXS=1 install \ | ||
# ====== pg_variables | ||
&& cd /tmp/build_ext \ | ||
&& git clone https://github.com/postgrespro/pg_variables \ | ||
&& git clone https://github.com/xinferum/pg_variables \ | ||
&& cd pg_variables \ | ||
&& make USE_PGXS=1 \ | ||
&& make USE_PGXS=1 install \ | ||
|
@@ -102,7 +102,7 @@ RUN localedef -i ru_RU -c -f UTF-8 -A /usr/share/locale/locale.alias ru_RU.UTF-8 | |
&& cd / \ | ||
&& ln -s /usr/share/postgresql/$PG_MAJOR/tsearch_data /usr/share/postgresql/ \ | ||
# ====== clean all unused package... | ||
&& apt-get purge -y git* mariadb* make gcc gcc-12 cpp cpp-12 clang* golang* postgresql-server-dev-$PG_MAJOR *-dev *-man \ | ||
&& apt-get purge -y make gcc gcc-12 cpp cpp-12 clang* golang* postgresql-server-dev-$PG_MAJOR *-dev *-man \ | ||
&& apt-get -f install \ | ||
&& apt-get -y autoremove \ | ||
&& apt-get -y clean \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
CREATE OR REPLACE FUNCTION pgbouncer.user_lookup(p_username text, OUT uname text, OUT phash text) RETURNS record | ||
LANGUAGE plpgsql SECURITY DEFINER | ||
AS $$ | ||
BEGIN | ||
SELECT usename, passwd FROM pg_catalog.pg_shadow | ||
WHERE usename = p_username INTO uname, phash; | ||
RETURN; | ||
END; | ||
$$; | ||
CREATE OR REPLACE FUNCTION pgbouncer.user_lookup(p_username text, OUT uname text, OUT phash text) RETURNS record | ||
LANGUAGE plpgsql SECURITY DEFINER | ||
AS $$ | ||
BEGIN | ||
SELECT usename, passwd FROM pg_catalog.pg_shadow | ||
WHERE usename = p_username INTO uname, phash; | ||
RETURN; | ||
END; | ||
$$; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ services: | |
|
||
postgres: | ||
|
||
# image: grufos/postgres:12.17 | ||
# image: grufos/postgres:12.18 | ||
build: | ||
context: ./docker-postgres | ||
dockerfile: Dockerfile | ||
|
@@ -35,5 +35,5 @@ services: | |
EMAIL_SERVER: "mail.company.ru" | ||
EMAIL_HOSTNAME: "[email protected]" | ||
BACKUP_THREADS: "4" | ||
BACKUP_MODE: "page" | ||
BACKUP_MODE: "" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ services: | |
|
||
postgres: | ||
|
||
# image: grufos/postgres:12.17 | ||
# image: grufos/postgres:12.18 | ||
build: | ||
context: ./docker-postgres | ||
dockerfile: Dockerfile | ||
|
@@ -35,10 +35,10 @@ services: | |
EMAIL_SERVER: "mail.company.ru" | ||
EMAIL_HOSTNAME: "[email protected]" | ||
BACKUP_THREADS: "4" | ||
BACKUP_MODE: "page" | ||
BACKUP_MODE: "" | ||
|
||
pgbouncer: | ||
# image: grufos/pgbouncer:1.17.0 | ||
# image: grufos/pgbouncer:1.22.0 | ||
build: | ||
context: ./docker-pgbouncer | ||
dockerfile: Dockerfile | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ services: | |
|
||
postgres: | ||
|
||
# image: grufos/postgres:12.17 | ||
# image: grufos/postgres:12.18 | ||
build: | ||
context: ./docker-postgres | ||
dockerfile: Dockerfile | ||
|
@@ -35,10 +35,10 @@ services: | |
EMAIL_SERVER: "mail.company.ru" | ||
EMAIL_HOSTNAME: "[email protected]" | ||
BACKUP_THREADS: "4" | ||
BACKUP_MODE: "page" | ||
BACKUP_MODE: "" | ||
|
||
pgbouncer: | ||
# image: grufos/pgbouncer:1.17.0 | ||
# image: grufos/pgbouncer:1.22.0 | ||
build: | ||
context: ./docker-pgbouncer | ||
dockerfile: Dockerfile | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,5 +20,5 @@ services: | |
EMAIL_SERVER: "mail.company.ru" | ||
EMAIL_HOSTNAME: "[email protected]" | ||
BACKUP_THREADS: "4" | ||
BACKUP_MODE: "page" | ||
BACKUP_MODE: "" | ||
BACKUP_STREAM: "yes" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
select 'GRANT EXECUTE ON FUNCTION mamonsu.' || proname || '() TO mamonsu;' from pg_proc where pronamespace = 'mamonsu'::regnamespace \gexec | ||
select 'GRANT EXECUTE ON FUNCTION mamonsu.' || oid::regprocedure || ' TO mamonsu;' from pg_proc where pronamespace = 'mamonsu'::regnamespace \gexec |
Oops, something went wrong.