8000 fix: execute sql files after PG startup (#166) · sorokinvld/postgres@e7b8a79 · GitHub
[go: up one dir, main page]

Skip to content

Commit e7b8a79

Browse files
authored
fix: execute sql files after PG startup (supabase#166)
1 parent d6c3493 commit e7b8a79

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

ansible/playbook.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
vars:
1111
sql_files:
12+
- { source: "pgbouncer_config/pgbouncer_auth_schema.sql", dest: "00-schema.sql" }
1213
- { source: "stat_extension.sql", dest: "01-extension.sql" }
1314

1415
environment:

ansible/tasks/setup-pgbouncer.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -109,18 +109,6 @@
109109
- "host all pgbouncer 127.0.0.1/32 scram-sha-256"
110110
- "# Connection configuration for pgbouncer user"
111111

112-
# Run PgBouncer SQL script
113-
- name: Transfer init SQL files
114-
copy:
115-
src: files/pgbouncer_config/pgbouncer_auth_schema.sql
116-
dest: /tmp/00-schema.sql
117-
118-
- name: Execute init SQL files
119-
become: yes
120-
become_user: postgres
121-
shell:
122-
cmd: /usr/lib/postgresql/bin/psql -f /tmp/00-schema.sql
123-
124112
# Add fail2ban filter
125113
- name: import jail.d/pgbouncer.conf
126114
template:

0 commit comments

Comments
 (0)
0