pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
To: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Remove unused code related to unknown type
Date: Thu, 2 Feb 2023 22:58:32 +0100
Message-ID: <e7887965-9e70-fd01-c2d1-5bc02f9169aa@enterprisedb.com> (raw)

Here is a patch that removes some unused leftovers from commit 
cfd9be939e9c516243c5b6a49ad1e1a9a38f1052 (old).

Attachments:

0001-Remove-unused-code-related-to-unknown-type.patch (text/plain, 1.3K) download From 638fa48b0852bf501069b4a6993454c011d9d42a Mon Sep 17 00:00:00 2001 From: Peter Eisentraut <peter@eisentraut.org> Date: Thu, 2 Feb 2023 22:53:26 +0100 Subject: [PATCH] Remove unused code related to unknown type These are leftovers obsoleted by cfd9be939e9c516243c5b6a49ad1e1a9a38f1052. --- src/backend/utils/adt/varlena.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/backend/utils/adt/varlena.c b/src/backend/utils/adt/varlena.c index fd81c47474..170b3a3820 100644 --- a/src/backend/utils/adt/varlena.c +++ b/src/backend/utils/adt/varlena.c @@ -45,7 +45,6 @@ /* GUC variable */ int bytea_output = BYTEA_OUTPUT_HEX; -typedef struct varlena unknown; typedef struct varlena VarString; /* @@ -112,12 +111,6 @@ typedef struct */ #define TEXTBUFLEN 1024 -#define DatumGetUnknownP(X) ((unknown *) PG_DETOAST_DATUM(X)) -#define DatumGetUnknownPCopy(X) ((unknown *) PG_DETOAST_DATUM_COPY(X)) -#define PG_GETARG_UNKNOWN_P(n) DatumGetUnknownP(PG_GETARG_DATUM(n)) -#define PG_GETARG_UNKNOWN_P_COPY(n) DatumGetUnknownPCopy(PG_GETARG_DATUM(n)) -#define PG_RETURN_UNKNOWN_P(x) PG_RETURN_POINTER(x) - #define DatumGetVarStringP(X) ((VarString *) PG_DETOAST_DATUM(X)) #define DatumGetVarStringPP(X) ((VarString *) PG_DETOAST_DATUM_PACKED(X)) -- 2.39.1

view thread (3+ messages)  latest in thread

Message-ID: <e7887965-9e70-fd01-c2d1-5bc02f9169aa@enterprisedb.com>
Permalink:  ../e7887965-9e70-fd01-c2d1-5bc02f9169aa@enterprisedb.com/
Also on:    postgresql.org/message-id/e7887965-9e70-fd01-c2d1-5bc02f9169aa@enterprisedb.com

 ·  · 

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: peter.eisentraut@enterprisedb.com
  Subject: Re: Remove unused code related to unknown type
  In-Reply-To: <e7887965-9e70-fd01-c2d1-5bc02f9169aa@enterprisedb.com>

* 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