Loading topic
CREATE TABLE, INSERT, and SELECT. You should also know what a CSV file is and have used the psql command-line client. PostgreSQL data types such as integer, text, and date are also assumed.2 min readpsql command-line client. You will learn how to describe a CSV file accurately so PostgreSQL can parse it with COPY.2 min readpsql command-line client, and the structure of a CSV file. You will use an existing table and load rows from a CSV file into it.3 min readpsql command-line client, understand CSV files, and know the main PostgreSQL data types. The key distinction is where PostgreSQL reads or writes the file: the database server or the client computer running psql.2 min readSELECT queries, CSV files, and how to use psql. This chapter focuses on exporting data from PostgreSQL. You will learn how to export a whole table, export a query result, and choose between server-side COPY and client-side \copy.2 min readSELECT, CREATE TABLE, and PostgreSQL data types. You should also know how to use psql and understand that a CSV file stores one row per line with fields separated by a delimiter.3 min readpsql command-line client. It also assumes the products table from earlier chapters exists:2 min readpsql command-line client. This chapter focuses on the permissions and security boundaries involved when COPY reads or writes a file on the database server.3 min readpsql, and an existing products table with columns such as id, name, price, released, and notes. A staging table is a temporary or permanent table that receives imported data before the data reaches the real table.2 min readpsql client. This chapter focuses on what happens when a row cannot be loaded and how to choose between an all-or-nothing import and a load that skips bad rows.3 min readpsql command-line client. You should already know how to create tables and run SELECT statements.2 min readpsql client. This chapter focuses on performance after you already know how COPY imports and exports data.3 min read