Skip to content

Commit ab81006

Browse files
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
1 parent fb958b5 commit ab81006

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

doc/src/sgml/plpgsql.sgml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4230,10 +4230,10 @@ ASSERT <replaceable class="parameter">condition</replaceable> <optional> , <repl
42304230

42314231
<programlisting>
42324232
CREATE TABLE emp (
4233-
empname text,
4234-
salary integer,
4235-
last_date timestamp,
4236-
last_user text
4233+
empname text,
4234+
salary integer,
4235+
last_date timestamp,
4236+
last_user text
42374237
);
42384238

42394239
CREATE FUNCTION emp_stamp() RETURNS trigger AS $emp_stamp$
@@ -4292,7 +4292,7 @@ CREATE TABLE emp_audit(
42924292
stamp timestamp NOT NULL,
42934293
userid text NOT NULL,
42944294
empname text NOT NULL,
4295-
salary integer
4295+
salary integer
42964296
);
42974297

42984298
CREATE OR REPLACE FUNCTION process_emp_audit() RETURNS TRIGGER AS $emp_audit$
@@ -4589,7 +4589,7 @@ CREATE TABLE emp_audit(
45894589
stamp timestamp NOT NULL,
45904590
userid text NOT NULL,
45914591
empname text NOT NULL,
4592-
salary integer
4592+
salary integer
45934593
);
45944594

45954595
CREATE OR REPLACE FUNCTION process_emp_audit() RETURNS TRIGGER AS $emp_audit$

0 commit comments

Comments
 (0)