PostgreSQL (5432)
Usage
PostgreSQL stores metadata in tables beggining with pg_
.
We can connect via CLI with psql
.
SQLi
Read/Write
COPY FROM
-> insert data into a table from a file (the PostgreSQL process must haveread
access to the file and the user making the query permissions to create a new table).
COPY TO
-> copy data to a file from a table (the PostgreSQL process must havewrite
permissions to the directory where the file will be created).
pg_read_file()
-> instead of inserting the results into a table, it just returns a single field containing all the data (useful if the PostgreSQL process hasread
access on the file, but the user querying don't have permissions to create a new table).
Last updated
Was this helpful?