Re: Allow passing extra options to initdb for tests

2024-02-16 Thread Daniel Gustafsson
> On 15 Feb 2024, at 16:21, Tom Lane wrote: > > Daniel Gustafsson writes: >> On 15 Feb 2024, at 11:38, Peter Eisentraut wrote: >>> We don't have a man page for pg_regress, so there is no place to >>> comprehensively document all the options and their interactions. > >> This comes up every

Re: Allow passing extra options to initdb for tests

2024-02-15 Thread Tom Lane
Daniel Gustafsson writes: > On 15 Feb 2024, at 11:38, Peter Eisentraut wrote: >> We don't have a man page for pg_regress, so there is no place to >> comprehensively document all the options and their interactions. > This comes up every now and again, just yesterday there was a question on >

Re: Allow passing extra options to initdb for tests

2024-02-15 Thread Daniel Gustafsson
> On 15 Feb 2024, at 11:38, Peter Eisentraut wrote: > We don't have a man page for pg_regress, so there is no place to > comprehensively document all the options and their interactions. This comes up every now and again, just yesterday there was a question on -general [0] about alternate

Re: Allow passing extra options to initdb for tests

2024-02-15 Thread Peter Eisentraut
On 14.02.24 06:22, Ian Lawrence Barwick wrote: I had a longer look at this and can't find any issues with the code or documentation changes. Thanks, committed. I did wonder whether it would be worth mentioning that any initdb options set in "PG_TEST_INITDB_EXTRA_OPTS" will override those

Re: Allow passing extra options to initdb for tests

2024-02-13 Thread Robert Haas
On Tue, Feb 6, 2024 at 4:24 PM Peter Eisentraut wrote: > I think this can be useful for a wide variety of uses, like running all > tests with checksums enabled, or with JIT enabled, or with different GUC > settings, or with different locale settings. (The existing pg_regress > --no-locale option

Re: Allow passing extra options to initdb for tests

2024-02-13 Thread Ian Lawrence Barwick
2024年2月7日(水) 12:51 Ian Lawrence Barwick : > > 2024年2月6日(火) 19:54 Peter Eisentraut : > > > > I'm proposing here a way to pass extra options to initdb when run > > internally during test setup in pg_regress or > > PostgreSQL::Test::Cluster's init (which covers just about all test > > suites other

Re: Allow passing extra options to initdb for tests

2024-02-06 Thread Ian Lawrence Barwick
2024年2月6日(火) 19:54 Peter Eisentraut : > > I'm proposing here a way to pass extra options to initdb when run > internally during test setup in pg_regress or > PostgreSQL::Test::Cluster's init (which covers just about all test > suites other than initdb's own tests). > > For example: > > make

Allow passing extra options to initdb for tests

2024-02-06 Thread Peter Eisentraut
] Allow passing extra options to initdb for tests Setting the environment variable PG_TEST_INITDB_EXTRA_OPTS passes extra options to initdb run by pg_regress or PostgreSQL::Test::Cluster's init. --- doc/src/sgml/regress.sgml| 34 +++- src/test/perl/PostgreSQL