pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Code comment fix
3+ messages / 2 participants
[nested] [flat]

Commits from this thread:
  2021-03-17 9fd2952cf4  Fix comment in indexing.c
* Code comment fix
@ 2021-03-17 07:31  Vik Fearing <vik@postgresfriends.org>
  0 siblings, 1 reply; 3+ messages in thread

From: Vik Fearing @ 2021-03-17 07:31 UTC (permalink / raw)
  To: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>; +Cc: Andres Freund <andres@anarazel.de>

When table oids were removed by commit 578b229718e, the function
CatalogTupleInsert() was modified to return void but its comment was
left intact.  Here is a trivial patch to fix that.
-- 
Vik Fearing

Attachments:

CatalogTupleInsert_comment.diff (text/x-patch, 622B) download diff --git a/src/backend/catalog/indexing.c b/src/backend/catalog/indexing.c index 284ceaa6b9..4d1440cd3a 100644 --- a/src/backend/catalog/indexing.c +++ b/src/backend/catalog/indexing.c @@ -210,7 +210,6 @@ CatalogTupleCheckConstraints(Relation heapRel, HeapTuple tup) * CatalogTupleInsert - do heap and indexing work for a new catalog tuple * * Insert the tuple data in "tup" into the specified catalog relation. - * The Oid of the inserted tuple is returned. * * This is a convenience routine for the common case of inserting a single * tuple in a system catalog; it inserts a new heap tuple, keeping indexes
^ permalink raw reply [nested|flat] 3+ messages in thread

* Re: Code comment fix
@ 2021-03-17 08:11  Michael Paquier <michael@paquier.xyz>
  parent: Vik Fearing <vik@postgresfriends.org>
  0 siblings, 1 reply; 3+ messages in thread

From: Michael Paquier @ 2021-03-17 08:11 UTC (permalink / raw)
  To: Vik Fearing <vik@postgresfriends.org>; +Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>; Andres Freund <andres@anarazel.de>

On Wed, Mar 17, 2021 at 08:31:16AM +0100, Vik Fearing wrote:
> When table oids were removed by commit 578b229718e, the function
> CatalogTupleInsert() was modified to return void but its comment was
> left intact.  Here is a trivial patch to fix that.

Thanks, Vik.  Good catch.  I'll fix that in a bit.
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Code comment fix
@ 2021-03-17 09:10  Vik Fearing <vik@postgresfriends.org>
  parent: Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 3+ messages in thread

From: Vik Fearing @ 2021-03-17 09:10 UTC (permalink / raw)
  To: Michael Paquier <michael@paquier.xyz>; +Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>; Andres Freund <andres@anarazel.de>

On 3/17/21 9:11 AM, Michael Paquier wrote:
> On Wed, Mar 17, 2021 at 08:31:16AM +0100, Vik Fearing wrote:
>> When table oids were removed by commit 578b229718e, the function
>> CatalogTupleInsert() was modified to return void but its comment was
>> left intact.  Here is a trivial patch to fix that.
> 
> Thanks, Vik.  Good catch.  I'll fix that in a bit.

Cheers.
-- 
Vik Fearing





^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2021-03-17 09:10 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-03-17 07:31 Code comment fix Vik Fearing <vik@postgresfriends.org>
2021-03-17 08:11 ` Michael Paquier <michael@paquier.xyz>
2021-03-17 09:10   ` Vik Fearing <vik@postgresfriends.org>

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