Skip to content

Commit 9b5a9e0

Browse files
Wait for wal to be available (#39)
Signed-off-by: souravbiswassanto <[email protected]>
1 parent 9a56ab6 commit 9b5a9e0

File tree

11 files changed

+2928
-6
lines changed

11 files changed

+2928
-6
lines changed

role_scripts/13/standby/remote-replica.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,6 @@ else
205205
{ echo 'host all all ::/0 md5'; } >>tmp/pg_hba.conf
206206
{ echo 'host replication postgres ::/0 md5'; } >>tmp/pg_hba.conf
207207
fi
208-
209208
fi
210209

211210
mv /tmp/pg_hba.conf "$PGDATA/pg_hba.conf"

role_scripts/17/primary/db.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/usr/bin/env bash
2+
3+
# Copyright AppsCode Inc. and Contributors
4+
#
5+
# Licensed under the AppsCode Free Trial License 1.0.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Free-Trial-1.0.0.md
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
17+
psql -c 'create database test;'
18+
psql -c 'CREATE TABLE fruits( id SERIAL PRIMARY KEY, name VARCHAR NOT NULL );'
19+
while true; do
20+
sleep 1
21+
psql -c "INSERT INTO fruits(name) VALUES('Orange');"
22+
done

0 commit comments

Comments
 (0)