From 43acc65358d5697dc03a27efa33b100325579730 Mon Sep 17 00:00:00 2001 From: anthonydb Date: Fri, 28 May 2021 06:40:18 -0400 Subject: [PATCH] Change order in Chapter 18 psql command file --- Chapter_18/psql_commands.txt | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/Chapter_18/psql_commands.txt b/Chapter_18/psql_commands.txt index 8d6762f..d370325 100644 --- a/Chapter_18/psql_commands.txt +++ b/Chapter_18/psql_commands.txt @@ -16,6 +16,12 @@ psql -d analysis -U postgres psql -d [database name] -U [username] -h [host name] psql -d analysis -U postgres -h example.com +-- Changing user and database name + +\c [database name] [user name] +\c test +\c test yourname + -- Format for password file (pgpass.conf on Windows; .pgpass on macOS/Linux) hostname:port:database:username:password @@ -87,13 +93,6 @@ SELECT * FROM grades ORDER BY student_id, course_id; createdb -U postgres -e box_office --- Changing user and database name - -\c [database name] [user name] -\c box_office -\c box_office yourname - - -- Loading shapefiles into PostgreSQL -- For the US Census county shapefile in Chapter 14: