pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>
To: pgsql-hackers@postgresql.org
Subject: Obsolete reference to pg_relation in comment
Date: Wed, 26 Jul 2023 18:48:51 +0100
Message-ID: <87sf9apnr0.fsf@wibble.ilmari.org> (raw)

Hi hackers,

Triggered by a discussion on IRC, I noticed that there's a stray
reference to pg_relation in a comment that was added long after it was
renamed to pg_class.  Here's a patch to bring that up to speed.

- ilmari

Attachments:

0001-Fix-obsolete-reference-to-pg_relation-in-comment.patch (text/x-diff, 1.2K) download From e395f8cb293f674f45eb3847534de07c7124e738 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dagfinn=20Ilmari=20Manns=C3=A5ker?= <ilmari@ilmari.org> Date: Wed, 26 Jul 2023 18:31:51 +0100 Subject: [PATCH] Fix obsolete reference to pg_relation in comment pg_relation was renamed to pg_class in 1991, but this comment (added in 2004) missed the memo --- src/backend/storage/large_object/inv_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/storage/large_object/inv_api.c b/src/backend/storage/large_object/inv_api.c index 84e543e731..a56912700b 100644 --- a/src/backend/storage/large_object/inv_api.c +++ b/src/backend/storage/large_object/inv_api.c @@ -59,7 +59,7 @@ bool lo_compat_privileges; /* * All accesses to pg_largeobject and its index make use of a single Relation - * reference, so that we only need to open pg_relation once per transaction. + * reference, so that we only need to open pg_class once per transaction. * To avoid problems when the first such reference occurs inside a * subtransaction, we execute a slightly klugy maneuver to assign ownership of * the Relation reference to TopTransactionResourceOwner. -- 2.39.2

view thread (9+ messages)  latest in thread

Message-ID: <87sf9apnr0.fsf@wibble.ilmari.org>
Permalink:  ../87sf9apnr0.fsf@wibble.ilmari.org/
Also on:    postgresql.org/message-id/87sf9apnr0.fsf@wibble.ilmari.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-hackers@postgresql.org
  Cc: ilmari@ilmari.org
  Subject: Re: Obsolete reference to pg_relation in comment
  In-Reply-To: <87sf9apnr0.fsf@wibble.ilmari.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