diff --git a/pages/common/ecpg.md b/pages/common/ecpg.md new file mode 100644 index 00000000000000..ee92a06758b7c0 --- /dev/null +++ b/pages/common/ecpg.md @@ -0,0 +1,32 @@ +# ecpg + +> Embedded SQL preprocessor for C programs. +> More information: . + +- Preprocess a specific file: + +`ecpg {{input.pgc}}` + +- Preprocess from `stdin` and output to `stdout`: + +`ecpg -o - -` + +- Preprocess from `stdin` and write to a file: + +`cat input.pgc | ecpg -o output.c -` + +- Preprocess and specify an output file: + +`ecpg -o {{output.c}} {{input.pgc}}` + +- Preprocess a header file (`.pgh` extension): + +`ecpg {{input.pgh}}` + +- Preprocess in a specific compatibility mode: + +`ecpg -C {{INFORMIX|INFORMIX_SE|ORACLE}} {{input.pgc}}` + +- Preprocess with autocommit enabled: + +`ecpg -t {{input.pgc}}` diff --git a/pages/common/postgres.md b/pages/common/postgres.md new file mode 100644 index 00000000000000..7727da7282f5a6 --- /dev/null +++ b/pages/common/postgres.md @@ -0,0 +1,20 @@ +# postgres + +> Run the PostgreSQL database server. +> More information: . + +- Start the server on a specific port (defaults to 5432): + +`postgres -p {{5433}}` + +- Set a runtime parameter (short form): + +`postgres -c {{shared_buffers=128MB}}` + +- Set a runtime parameter (long form): + +`postgres --{{shared-buffers}}={{128MB}}` + +- Start in single-user mode for a specific database (defaults to the user name): + +`postgres --single -D {{path/to/datadir}} {{my_database}}`