Chugging through the 'basics' tutorial
mostly for fun ... and to see if I'm missing any foundational bits.
This commit is contained in:
parent
0d62c61add
commit
1593c21031
@ -14,8 +14,9 @@ start: $(HERE)/bin/pg_ctl $(HERE)/data $(HERE)/log
|
||||
stop: $(HERE)/bin/pg_ctl $(HERE)/data $(HERE)/log
|
||||
$(HERE)/bin/pg_ctl stop -D $(HERE)/data
|
||||
|
||||
# pg_ctl restart isn't quite what I want...
|
||||
restart: $(HERE)/bin/pg_ctl $(HERE)/data $(HERE)/log
|
||||
$(HERE)/bin/pg_ctl restart -D $(HERE)/data
|
||||
$(MAKE) stop && $(MAKE) start
|
||||
|
||||
$(TARBALL_BASENAME).tar.bz2:
|
||||
curl -L -O $(TARBALL_URL)
|
||||
|
@ -317,7 +317,7 @@ wal_level = hot_standby # minimal, archive, or hot_standby
|
||||
|
||||
# - When to Log -
|
||||
|
||||
client_min_messages = debug1 # values in order of decreasing detail:
|
||||
client_min_messages = warning # values in order of decreasing detail:
|
||||
# debug5
|
||||
# debug4
|
||||
# debug3
|
||||
@ -364,10 +364,10 @@ log_min_duration_statement = 0 # -1 is disabled, 0 logs all statements
|
||||
|
||||
# - What to Log -
|
||||
|
||||
debug_print_parse = on
|
||||
debug_print_rewritten = on
|
||||
debug_print_plan = on
|
||||
debug_pretty_print = on
|
||||
debug_print_parse = off
|
||||
debug_print_rewritten = off
|
||||
debug_print_plan = off
|
||||
debug_pretty_print = off
|
||||
log_checkpoints = on
|
||||
log_connections = on
|
||||
log_disconnections = on
|
||||
|
12
postgresql/tutorial/weather/init.sql
Normal file
12
postgresql/tutorial/weather/init.sql
Normal file
@ -0,0 +1,12 @@
|
||||
CREATE TABLE weather (
|
||||
city varchar(80),
|
||||
temp_lo int,
|
||||
temp_hi int,
|
||||
prcp real,
|
||||
date date
|
||||
);
|
||||
|
||||
CREATE TABLE cities (
|
||||
name varchar(80),
|
||||
location point
|
||||
);
|
2
postgresql/tutorial/weather/wipe.sql
Normal file
2
postgresql/tutorial/weather/wipe.sql
Normal file
@ -0,0 +1,2 @@
|
||||
DROP TABLE IF EXISTS weather;
|
||||
DROP TABLE IF EXISTS cities;
|
Loading…
Reference in New Issue
Block a user