Suggestion to standardize comment format in pg_dump - Mailing list pgsql-hackers

From Nohez Poonawala
Subject Suggestion to standardize comment format in pg_dump
Date
Msg-id CAE0ZbBFSBh-CGWXA8n_P7a=KSkT6Tu7uMN7vkBCdMbAtNd8aTw@mail.gmail.com
Whole thread Raw
Responses Re: Suggestion to standardize comment format in pg_dump
List pgsql-hackers
Currently, the pg_dump tool outputs comments in different formats for
primary/foreign keys and indexes.  Below is the comment format.

- for Primary key:
  -- Name: TABLENAME CONSTRAINTNAME; Type: CONSTRAINT; Schema: SCHEMA;
Owner: OWNER
- for Foreign key:
  -- Name: TABLENAME CONSTRAINTNAME; Type: FK CONSTRAINT; Schema:
SCHEMA; Owner: OWNER
- for Index:
  -- Name: INDEXNAME; Type: INDEX; Schema: SCHEMA; Owner: OWNER

To maintain consistency, I suggest modifying the comment format for
indexes to include the associated TABLENAME, similar to constraints.

For example:
- for Index:
  -- Name: TABLENAME INDEXNAME; Type: INDEX; Schema: SCHEMA; Owner: OWNER

This small change would improve clarity and make the output format more uniform.

If I am reporting this to the wrong forum, please excuse me. If
possible, kindly suggest the correct forum for submitting this
request.

Regards,



pgsql-hackers by date:

Previous
From: Kirill Reshke
Date:
Subject: Re: CREATE SCHEMA ... CREATE DOMAIN support
Next
From: John Naylor
Date:
Subject: Re: Sort functions with specialized comparators