pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Add a regression test for allow_system_table_mods
Date: Mon, 02 Dec 2019 10:11:40 -0500
Message-ID: <29779.1575299500@sss.pgh.pa.us> (raw)
In-Reply-To: <1e7bb9a1-1104-907d-da62-857408d271ef@2ndquadrant.com>
References: <E1iacW7-0003h6-6U@gemulon.postgresql.org>
	<13656.1575041267@sss.pgh.pa.us>
	<315cfd3b-9d04-0ea4-76d8-1507c8bd9bb7@2ndquadrant.com>
	<15399.1575043746@sss.pgh.pa.us>
	<1e7bb9a1-1104-907d-da62-857408d271ef@2ndquadrant.com>

Peter Eisentraut <peter.eisentraut@2ndquadrant.com> writes:
> On 2019-11-29 17:09, Tom Lane wrote:
>> But using a different name isn't going to invalidate the test case,

> The test case is specifically testing tablespace names starting with "pg_":
>      -- reserved tablespace name
>      CREATE TABLESPACE pg_foo LOCATION '/no/such/location';
>      ERROR:  unacceptable tablespace name "pg_foo"
>      DETAIL:  The prefix "pg_" is reserved for system tablespaces.

Oh, I see.  But is testing that specific error case really worth
the trouble it's going to be to make this pass with or without 
-DENFORCE_REGRESSION_TEST_NAME_RESTRICTIONS ?

One way would be to provide a variant expected-file, but that's not going
to be fun for future maintenance of the test script.  Another simple
answer is to crank up client_min_messages for this one test to hide the
WARNING, but you could conjure scenarios where that misses something
important.  (Of course, not running the test at all would also miss
any such issue.)

			regards, tom lane





view thread (9+ messages)  latest in thread

Message-ID: <29779.1575299500@sss.pgh.pa.us>
Permalink:  ../29779.1575299500@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/29779.1575299500@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, peter.eisentraut@2ndquadrant.com, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Add a regression test for allow_system_table_mods
  In-Reply-To: <29779.1575299500@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