pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: lemes.marcelo26@gmail.com
To: pgsql-docs@lists.postgresql.org
Subject: Re: Alignment issue at 43.10. Trigger Functions
Date: Fri, 18 Nov 2022 07:21:03 +0100
Message-ID: <b32f241d5016a8b1af933ec52be848bcf0c99ce3.camel@cybertec.at> (raw)
In-Reply-To: <166870885664.635.16667004450401573487@wrigleys.postgresql.org>
References: <166870885664.635.16667004450401573487@wrigleys.postgresql.org>

On Thu, 2022-11-17 at 18:14 +0000, PG Doc comments form wrote:
> Page: https://www.postgresql.org/docs/13/plpgsql-trigger.html
> 
> Type alignment issue for salary at "Example 43.4. A PL/pgSQL Trigger
> Function for Auditing":
> 
> CREATE TABLE emp_audit(
>     operation         char(1)   NOT NULL,
>     stamp             timestamp NOT NULL,
>     userid            text      NOT NULL,
>     empname           text      NOT NULL,
>     salary integer
> );

Attached is a patch to fix that.

Yours,
Laurenz Albe

Attachments:

  [text/x-patch] 0001-Fix-text-alignment-in-an-example.patch (782B, ../b32f241d5016a8b1af933ec52be848bcf0c99ce3.camel@cybertec.at/2-0001-Fix-text-alignment-in-an-example.patch)
  download | inline diff:
From 4cfc7ec4b655a8317a918e3a4a0791433af58a63 Mon Sep 17 00:00:00 2001
From: Laurenz Albe <laurenz.albe@cybertec.at>
Date: Fri, 18 Nov 2022 07:19:30 +0100
Subject: [PATCH] Fix text alignment in an example

---
 doc/src/sgml/plpgsql.sgml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/doc/src/sgml/plpgsql.sgml b/doc/src/sgml/plpgsql.sgml
index d85f89bf30..e80ab2913f 100644
--- a/doc/src/sgml/plpgsql.sgml
+++ b/doc/src/sgml/plpgsql.sgml
@@ -4301,7 +4301,7 @@ CREATE TABLE emp_audit(
     stamp             timestamp NOT NULL,
     userid            text      NOT NULL,
     empname           text      NOT NULL,
-    salary integer
+    salary            integer
 );
 
 CREATE OR REPLACE FUNCTION process_emp_audit() RETURNS TRIGGER AS $emp_audit$
-- 
2.38.1



view thread (4+ messages)  latest in thread

Message-ID: <b32f241d5016a8b1af933ec52be848bcf0c99ce3.camel@cybertec.at>
Permalink:  ../b32f241d5016a8b1af933ec52be848bcf0c99ce3.camel@cybertec.at/
Also on:    postgresql.org/message-id/b32f241d5016a8b1af933ec52be848bcf0c99ce3.camel@cybertec.at

 ·  · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: laurenz.albe@cybertec.at, lemes.marcelo26@gmail.com, pgsql-docs@lists.postgresql.org
  Subject: Re: Alignment issue at 43.10. Trigger Functions
  In-Reply-To: <b32f241d5016a8b1af933ec52be848bcf0c99ce3.camel@cybertec.at>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox