postgresql/src/tutorial
Tom Lane 0245f8db36 Pre-beta mechanical code beautification.
Run pgindent, pgperltidy, and reformat-dat-files.

This set of diffs is a bit larger than typical.  We've updated to
pg_bsd_indent 2.1.2, which properly indents variable declarations that
have multi-line initialization expressions (the continuation lines are
now indented one tab stop).  We've also updated to perltidy version
20230309 and changed some of its settings, which reduces its desire to
add whitespace to lines to make assignments etc. line up.  Going
forward, that should make for fewer random-seeming changes to existing
code.

Discussion: https://postgr.es/m/20230428092545.qfb3y5wcu4cm75ur@alvherre.pgsql
2023-05-19 17:24:48 -04:00
..
.gitignore Add .gitignore to src/tutorial/ 2019-11-22 21:14:54 +09:00
Makefile Rename 'gmake' to 'make' in docs and recommended commands 2014-02-12 17:29:19 -05:00
README Rename 'gmake' to 'make' in docs and recommended commands 2014-02-12 17:29:19 -05:00
advanced.source tutorial: land height is "elevation", not "altitude" 2021-03-10 20:25:19 -05:00
basics.source Doc: sync src/tutorial/basics.source with SGML documentation. 2022-11-19 13:09:14 -05:00
complex.c Deduplicate "invalid input syntax" messages for various types. 2018-07-22 14:58:01 -07:00
complex.source Update copyright for 2023 2023-01-02 15:00:37 -05:00
funcs.c Pre-beta mechanical code beautification. 2023-05-19 17:24:48 -04:00
funcs.source Doc, more or less: uncomment tutorial example that was fixed long ago. 2021-01-13 16:00:03 -05:00
syscat.source Update copyright for 2023 2023-01-02 15:00:37 -05:00

README

src/tutorial/README

tutorial
========

This directory contains SQL tutorial scripts.  To look at them, first do a
	% make
to compile all the scripts and C files for the user-defined functions
and types.  (make needs to be GNU make --- it may be named something
different on your system, often 'gmake')

Then, run psql with the -s (single-step) flag:
	% psql -s

From within psql, you can try each individual script file by using
psql's \i <filename> command.