mirror of
https://github.com/yandex/pgmigrate.git
synced 2024-09-11 04:15:28 +03:00
Defect was discovered by Alexander Artemenko (@svetlyak40wt). If pgmigrate is used with pgbouncer in transaction pooling mode conflict termination will fail to correctly find pgmigrate connections. In order to fix this we pass random application_name in dsn for each connection. We use LIKE-query because connection pooler could append host/port to original value.
13 lines
344 B
Bash
Executable File
13 lines
344 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
chown -R postgres:postgres /dist
|
|
mkdir -p /var/log/postgresql
|
|
chown postgres:postgres /var/log/postgresql
|
|
sudo -u postgres /usr/lib/postgresql/${PG_MAJOR}/bin/pg_ctl -D \
|
|
/etc/postgresql/${PG_MAJOR}/main -l \
|
|
/var/log/postgresql/postgresql-${PG_MAJOR}-main.log start
|
|
cd /dist
|
|
sudo -u postgres -i tox -c /dist/tox.ini
|