PromucFlow_constructor/deploy/docker/fs/opt/appsmith/run-postgres.sh
Sumesh Pradhan fd5d3a47b5
fix: clear postgres core dumps (#27152)
Co-authored-by: Shrikant Sharat Kandula <shrikant@appsmith.com>
2023-09-19 17:34:42 +05:30

6 lines
251 B
Bash
Executable File

#!/bin/bash
rm -f /appsmith-stacks/data/postgres/main/core.*
mkdir -p "$TMP/postgres-stats"
exec /usr/lib/postgresql/13/bin/postgres -D "/appsmith-stacks/data/postgres/main" -c listen_addresses=127.0.0.1 -c stats_temp_directory="$TMP/postgres-stats"