Skip to content

Commit

Permalink
drop existing foreign tables cascadingly when switching to hourly format
Browse files Browse the repository at this point in the history
  • Loading branch information
FxKu committed Sep 20, 2024
1 parent 254fa9d commit 3b82cea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion postgres-appliance/scripts/post_init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ for i in $(seq 0 7); do
daily_auth="CREATE OR REPLACE VIEW public.failed_authentication_${i} WITH (security_barrier) AS\n"
daily_union=""

echo "DROP FOREIGN TABLE IF EXISTS public.postgres_log_${i};"
echo "DROP FOREIGN TABLE IF EXISTS public.postgres_log_${i} CASCADE;"

for h in $(seq -w 0 23); do
filter_logs="SELECT * FROM public.postgres_log_${i}_${h} WHERE command_tag = 'authentication' AND error_severity = 'FATAL'"
Expand Down

0 comments on commit 3b82cea

Please sign in to comment.