pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: armandnortjee@gmail.com
Subject: BUG #18829: RAISE NOTICE appends 's' to string in PostgreSQL 17.2
Date: Sun, 02 Mar 2025 14:18:55 +0000
Message-ID: <18829-2ed4d964795b3b57@postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      18829
Logged by:          Armand
Email address:      armandnortjee@gmail.com
PostgreSQL version: 17.2
Operating system:   Windows 10
Description:        

In PostgreSQL 17.2, when using the RAISE NOTICE command with a string
variable, the output incorrectly appends an extra 's' to the string value.
This issue does not occur when running the same code in earlier PostgreSQL
versions (e.g., PostgreSQL 16).

DO $$
DECLARE
    my_var TEXT := 'garth';
BEGIN
    RAISE NOTICE '%s is slim', my_var;
END
$$;

Expected Result:
The output should be:
NOTICE:  garth is slim

Actual Result:
The output incorrectly shows:
NOTICE:  garths is slim



view thread (4+ messages)  latest in thread

Message-ID: <18829-2ed4d964795b3b57@postgresql.org>
Permalink:  ../18829-2ed4d964795b3b57@postgresql.org/
Also on:    postgresql.org/message-id/18829-2ed4d964795b3b57@postgresql.org

 · 

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-bugs@postgresql.org
  Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, armandnortjee@gmail.com
  Subject: Re: BUG #18829: RAISE NOTICE appends 's' to string in PostgreSQL 17.2
  In-Reply-To: <18829-2ed4d964795b3b57@postgresql.org>

* 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