pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jeff Davis <jdavis@postgresql.org>
Cc: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Add functions pg_set_attribute_stats() and pg_clear_attribute_st
Date: Tue, 22 Oct 2024 23:18:34 -0400
Message-ID: <2144895.1729653514@sss.pgh.pa.us> (raw)
In-Reply-To: <E1t3NIx-001xv3-6p@gemulon.postgresql.org>
References: <E1t3NIx-001xv3-6p@gemulon.postgresql.org>

Jeff Davis <jdavis@postgresql.org> writes:
> Add functions pg_set_attribute_stats() and pg_clear_attribute_stats().

A couple of buildfarm animals, eg [1], are mildly unhappy:

In file included from ../../../src/include/nodes/execnodes.h:37:0,
                 from ../../../src/include/catalog/indexing.h:19,
                 from attribute_stats.c:21:
attribute_stats.c: In function \342\200\230text_to_stavalues\342\200\231:
../../../src/include/nodes/miscnodes.h:54:15: warning: the comparison will always evaluate as \342\200\230true\342\200\231 for the address of \342\200\230escontext\342\200\231 will never be NULL [-Waddress]
  ((escontext) != NULL && IsA(escontext, ErrorSaveContext) && \\
               ^
attribute_stats.c:636:6: note: in expansion of macro \342\200\230SOFT_ERROR_OCCURRED\342\200\231
  if (SOFT_ERROR_OCCURRED(&escontext))
      ^

I think what we've done in other places is just to test
escontext.error_occurred directly, since the rest of the
macro is useless in this situation.

			regards, tom lane

[1] https://buildfarm.postgresql.org/cgi-bin/show_stage_log.pl?nm=rhinoceros&dt=2024-10-23%2000%3A47...





view thread (2+ messages)

Message-ID: <2144895.1729653514@sss.pgh.pa.us>
Permalink:  ../2144895.1729653514@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/2144895.1729653514@sss.pgh.pa.us

 · 

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-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, jdavis@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Add functions pg_set_attribute_stats() and pg_clear_attribute_st
  In-Reply-To: <2144895.1729653514@sss.pgh.pa.us>

* 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