pg_get_trace_counts_daily.sql
input file in the support_queries/postgres
directory.
Prerequisites
Ensure you have the following tools/items ready.- kubectl
- PostgreSQL client
-
PostgreSQL database connection:
- Host
- Port
- Username
- If using the bundled version, this is
postgres
- If using the bundled version, this is
- Password
- If using the bundled version, this is
postgres
- If using the bundled version, this is
- Database name
- If using the bundled version, this is
postgres
- If using the bundled version, this is
-
Connectivity to the PostgreSQL database from the machine you will be running the migration script on.
- If you are using the bundled version, you may need to port forward the postgresql service to your local machine.
- Run
kubectl port-forward svc/langsmith-postgres 5432:5432
to port forward the postgresql service to your local machine.
-
The script to run a support query
- You can download the script from here
Running the query script
Run the following command to run the desired query:--output path/to/file.csv