Re: Prefer TG_TABLE_NAME over TG_RELNAME in tests - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: Prefer TG_TABLE_NAME over TG_RELNAME in tests
Date
Msg-id 20200924031746.GG7405@paquier.xyz
Whole thread Raw
In response to Prefer TG_TABLE_NAME over TG_RELNAME in tests  (Daniel Gustafsson <daniel@yesql.se>)
Responses Re: Prefer TG_TABLE_NAME over TG_RELNAME in tests  (Magnus Hagander <magnus@hagander.net>)
List pgsql-hackers
On Wed, Sep 23, 2020 at 12:07:14PM +0200, Daniel Gustafsson wrote:
> TG_RELNAME was marked deprecated in commit 3a9ae3d2068 some 14 years ago, but
> we still use it in the triggers test suite (test added in 59b4cef1eb74a a year
> before deprecation).  Seems about time to move over to TG_TABLE_NAME ourselves,
> as TG_RELNAME is still covered by the test added in the deprecation commit.

No objections from here to remove that from the core tests.  It is
worth noting that Debian Code Search hints that this is used in some
extensions:
https://codesearch.debian.net/search?q=TG_RELNAME&literal=1

These are pgformatter, bucardo, sql-ledger, ledgersmb and davical.
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Greg Nancarrow
Date:
Subject: Re: Parallel copy
Next
From: Greg Nancarrow
Date:
Subject: Re: Parallel INSERT (INTO ... SELECT ...)