Compare commits

..

No commits in common. "cc14a8d01792430f2b7b67e1dcf8a50510fb1535" and "fedf44a0627c797c99737382edc283f686e3506c" have entirely different histories.

View File

@ -66,18 +66,6 @@ where table_schema = 'public'
order by 4 desc;
EOF
log "Identifying total candidates for deletion:"
psql "${DSN}" <<EOF
SELECT count(login_challenge)
FROM hydra_oauth2_flow
WHERE login_challenge = ANY (
array(
SELECT login_challenge
FROM hydra_oauth2_flow
WHERE requested_at < '${BEFORE_DATE}'
)
);
EOF
REMAINING_ELMTS="${LIMIT}"
while [ "${REMAINING_ELMTS}" -gt 0 ]; do
@ -113,19 +101,6 @@ EOF
fi
done
log "Candidates remaining after deletion:"
psql "${DSN}" <<EOF
SELECT count(login_challenge)
FROM hydra_oauth2_flow
WHERE login_challenge = ANY (
array(
SELECT login_challenge
FROM hydra_oauth2_flow
WHERE requested_at < '${BEFORE_DATE}'
)
);
EOF
log "Final estimated size:"
psql "${DSN}" <<EOF