mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
doc: fix type alignment for CREATE TABLE in triggers
Datatypes in CREATE TABLE statements in the examples were vertically aligned in most cases, a few examples were unaligned with a single space. This makes sure all examples on the same page are consistently aligned. Patch by Laurenz Albe with some additional fixups by me. Author: Laurenz Albe <laurenz.albe@cybertec.at> Reported-by: lemes.marcelo26@gmail.com Discussion: https://postgr.es/m/166870885664.635.16667004450401573487@wrigleys.postgresql.org
This commit is contained in:
@ -4230,10 +4230,10 @@ ASSERT <replaceable class="parameter">condition</replaceable> <optional> , <repl
|
|||||||
|
|
||||||
<programlisting>
|
<programlisting>
|
||||||
CREATE TABLE emp (
|
CREATE TABLE emp (
|
||||||
empname text,
|
empname text,
|
||||||
salary integer,
|
salary integer,
|
||||||
last_date timestamp,
|
last_date timestamp,
|
||||||
last_user text
|
last_user text
|
||||||
);
|
);
|
||||||
|
|
||||||
CREATE FUNCTION emp_stamp() RETURNS trigger AS $emp_stamp$
|
CREATE FUNCTION emp_stamp() RETURNS trigger AS $emp_stamp$
|
||||||
@ -4292,7 +4292,7 @@ CREATE TABLE emp_audit(
|
|||||||
stamp timestamp NOT NULL,
|
stamp timestamp NOT NULL,
|
||||||
userid text NOT NULL,
|
userid text NOT NULL,
|
||||||
empname text NOT NULL,
|
empname text NOT NULL,
|
||||||
salary integer
|
salary integer
|
||||||
);
|
);
|
||||||
|
|
||||||
CREATE OR REPLACE FUNCTION process_emp_audit() RETURNS TRIGGER AS $emp_audit$
|
CREATE OR REPLACE FUNCTION process_emp_audit() RETURNS TRIGGER AS $emp_audit$
|
||||||
@ -4589,7 +4589,7 @@ CREATE TABLE emp_audit(
|
|||||||
stamp timestamp NOT NULL,
|
stamp timestamp NOT NULL,
|
||||||
userid text NOT NULL,
|
userid text NOT NULL,
|
||||||
empname text NOT NULL,
|
empname text NOT NULL,
|
||||||
salary integer
|
salary integer
|
||||||
);
|
);
|
||||||
|
|
||||||
CREATE OR REPLACE FUNCTION process_emp_audit() RETURNS TRIGGER AS $emp_audit$
|
CREATE OR REPLACE FUNCTION process_emp_audit() RETURNS TRIGGER AS $emp_audit$
|
||||||
|
Reference in New Issue
Block a user