Sunday, 21 January 2024

PostgreSQL: Generate CSV Log File, Insert into Table

 Check the below steps:

Change below parameter in postgresql.conf:

Create a below table for storing the CSV logs:

Copy CSV logs into table:
Get your CSV log file path and copy into a table

No comments:

Post a Comment

Master and Slave - Sync check - PostgreSQL

  1) Run the below Query on Primary:- SELECT     pid,     usename,     application_name,     client_addr,     state,     sync_state,     sen...