YD
08/10/2021, 7:37 PMKevin Kho
YD
08/10/2021, 9:08 PMKevin Kho
YD
08/10/2021, 11:20 PMKevin Kho
Sam Cook
08/11/2021, 1:05 PMDELETE FROM log WHERE timestamp < NOW() - INTERVAL '90 days';
YD
08/11/2021, 5:09 PMKevin Kho
YD
08/11/2021, 6:19 PMdocker exec -it
...) .Kevin Kho
YD
08/11/2021, 7:18 PMdocker exec -it temp_data_processing_postgres_1 sh -c "psql -U username -d mydatabase -c 'SELECT * FROM log limit 10;' "
but I think I need the username
and the mydatabase
prefect is using for the log
do you know what is it ?Sam Cook
08/11/2021, 7:25 PMprefect
and `test-password`and the database is prefect_server
https://github.com/PrefectHQ/prefect/blob/master/src/prefect/config.toml
You can also set environment variables for the postgres parameters if you don't want to type them on command lineYD
08/11/2021, 7:34 PMdocker exec -it temp_data_processing_postgres_1 sh -c "psql PGPASSWORD=test-passwordand -U prefect -d prefect_server -c 'SELECT * FROM log limit 10;' "
thanks