pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: ugurlu2001@hotmail.com
To: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #18793: PLpgSQL Function Returning Type of Table is not match for varchar(n) data type via Return Query
Date: Tue, 04 Feb 2025 16:13:46 +0100
Message-ID: <65eb4d7a46a2759dc2583f274bf50d16811caebe.camel@cybertec.at> (raw)
In-Reply-To: <18793-07a72289887f0966@postgresql.org>
References: <18793-07a72289887f0966@postgresql.org>

On Tue, 2025-02-04 at 12:43 +0000, PG Bug reporting form wrote:
> I have a set of "Functions" that I created dynamically with PLPgSQL and are
> connected to each other in a chain.
> 
> The first function dynamically creates the second function. The second
> function returns a set of values with a dynamic "Return Query" statement and
> a reference to "Returns Table (field1 type1, field2 type2 .... )".
> 
> Basically, the result set seems to return exactly the desired result. The
> exception is the varchar(n) fixed-length data type. Although the result set
> is expected to be varchar(n) -a fixed-length value is expected-, a result of
> type character varying (length indeterminate) is obtained.
> 
> [...]
> 
> As far as I have determined, the Postgresql database engine somehow returns
> the varchar(n) - Fixed Length - data type as a "character varying" -
> indefinite length data type.
> 
> I hope this situation, which I observed as a problem, will be fixed as soon
> as possible.

That is working asdesigned.  Why is it a problem for you?

Yours,
Laurenz Albe





view thread (6+ messages)  latest in thread

Message-ID: <65eb4d7a46a2759dc2583f274bf50d16811caebe.camel@cybertec.at>
Permalink:  ../65eb4d7a46a2759dc2583f274bf50d16811caebe.camel@cybertec.at/
Also on:    postgresql.org/message-id/65eb4d7a46a2759dc2583f274bf50d16811caebe.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-bugs@postgresql.org
  Cc: laurenz.albe@cybertec.at, ugurlu2001@hotmail.com, pgsql-bugs@lists.postgresql.org
  Subject: Re: BUG #18793: PLpgSQL Function Returning Type of Table is not match for varchar(n) data type via Return Query
  In-Reply-To: <65eb4d7a46a2759dc2583f274bf50d16811caebe.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