in reply to Postgresql output to file
If this is all you want to do, you don't need Perl, you can just use psql -c.
psql -U postgres -d dbase -c "SELECT * FROM logs_column WHERE logged_in > NOW()::timestamp - interval '24hour';"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Postgresql output to file
by mikebailey (Novice) on Sep 05, 2024 at 15:05 UTC | |
by afoken (Chancellor) on Sep 05, 2024 at 16:29 UTC |