pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: keith@omniti.com
To: pgsql-bugs@postgresql.org
Subject: BUG #6428: pg_restore -l not consistent with function comments
Date: Wed, 01 Feb 2012 21:50:45 +0000
Message-ID: <E1Rsi4j-00038m-Vc@wrigleys.postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      6428
Logged by:          Keith
Email address:      keith@omniti.com
PostgreSQL version: 9.1.2
Operating system:   Any
Description:        

Working on a tool that iterates through the pg_restore -l list for doing
more advanced dump filtering (pg_extractor), I came across an inconsistency
in the object list that is generated. If a function is declared with the
argument variable names defined in the argument list, and has an associated
comment, the line for the comment in the pg_restore -l list includes the
variable name in the argument list whereas the line for the function itself
just has the argument types. This has made it hard for me to match comments
with functions. It just seems very inconsistent as well since the function
signature does not require the argument variable names to uniquely identify
it. Not a hugely critical item, but it's made it hard for me to make my
filtering tool as useful as I'd like it to be.

Example:
14663; 1255 16507 FUNCTION keith do_something(integer, text) postgres
48818; 0 0 COMMENT keith FUNCTION do_something(data_source_id integer, query
text) postgres




Message-ID: <E1Rsi4j-00038m-Vc@wrigleys.postgresql.org>
Permalink:  ../E1Rsi4j-00038m-Vc@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/E1Rsi4j-00038m-Vc@wrigleys.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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: keith@omniti.com
  Subject: Re: BUG #6428: pg_restore -l not consistent with function comments
  In-Reply-To: <E1Rsi4j-00038m-Vc@wrigleys.postgresql.org>
  References: <E1Rsi4j-00038m-Vc@wrigleys.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