On 2/14/17 2:49 PM, Pavel Stehule wrote:
> Tom's use case might be more easily served by specifying a
> template database. I don't think Pavel ever posted his use case.
Wait, that's precisely what Pavel asked?
I would to use regress test environment in my current case. 99% code in
Dne 14. 2. 2017 21:35 napsal uživatel "Andres Freund" :
On 2017-02-14 14:29:56 -0600, Jim Nasby wrote:
> On 2/14/17 1:59 PM, Andres Freund wrote:
> > > AFAIK if you're doing make check (as opposed to installcheck) it's
> > > significantly more complicated than that since you'd have to create a
tem
On 2017-02-14 14:29:56 -0600, Jim Nasby wrote:
> On 2/14/17 1:59 PM, Andres Freund wrote:
> > > AFAIK if you're doing make check (as opposed to installcheck) it's
> > > significantly more complicated than that since you'd have to create a temp
> > > cluster/install yourself.
> >
> > But in that cas
On 2/14/17 1:59 PM, Andres Freund wrote:
AFAIK if you're doing make check (as opposed to installcheck) it's
significantly more complicated than that since you'd have to create a temp
cluster/install yourself.
>
But in that case you can't have useful templates in the regression test
either, so t
On 2017-02-14 12:33:35 -0600, Jim Nasby wrote:
> On 2/13/17 8:50 PM, Andres Freund wrote:
> > On 2017-02-14 11:46:52 +0900, Michael Paquier wrote:
> > > > I still fail to see why --use-existing as suggested in
> > > > https://www.postgresql.org/message-id/20170208002900.vkldujzfkwbvq...@alap3.anara
On 2/13/17 8:50 PM, Andres Freund wrote:
On 2017-02-14 11:46:52 +0900, Michael Paquier wrote:
I still fail to see why --use-existing as suggested in
https://www.postgresql.org/message-id/20170208002900.vkldujzfkwbvq...@alap3.anarazel.de
isn't sufficient.
Some tests create objects without remov
2017-02-14 3:36 GMT+01:00 Andres Freund :
> On 2017-02-13 20:59:43 +0100, Pavel Stehule wrote:
> > Hi
> >
> > 2017-02-13 6:46 GMT+01:00 Michael Paquier :
> >
> > > On Sat, Feb 11, 2017 at 3:03 PM, Pavel Stehule <
> pavel.steh...@gmail.com>
> > > wrote:
> > > > here is new update - check is done be
2017-02-14 3:50 GMT+01:00 Andres Freund :
> On 2017-02-14 11:46:52 +0900, Michael Paquier wrote:
> > > I still fail to see why --use-existing as suggested in
> > > https://www.postgresql.org/message-id/20170208002900.
> vkldujzfkwbvq...@alap3.anarazel.de
> > > isn't sufficient.
> >
> > Some tests
On 2017-02-14 11:46:52 +0900, Michael Paquier wrote:
> > I still fail to see why --use-existing as suggested in
> > https://www.postgresql.org/message-id/20170208002900.vkldujzfkwbvq...@alap3.anarazel.de
> > isn't sufficient.
>
> Some tests create objects without removing them, meaning that
> cont
On Tue, Feb 14, 2017 at 11:36 AM, Andres Freund wrote:
> On 2017-02-13 20:59:43 +0100, Pavel Stehule wrote:
>> Hi
>>
>> 2017-02-13 6:46 GMT+01:00 Michael Paquier :
>>
>> > On Sat, Feb 11, 2017 at 3:03 PM, Pavel Stehule
>> > wrote:
>> > > here is new update - check is done before any creating
>> >
On 2017-02-13 20:59:43 +0100, Pavel Stehule wrote:
> Hi
>
> 2017-02-13 6:46 GMT+01:00 Michael Paquier :
>
> > On Sat, Feb 11, 2017 at 3:03 PM, Pavel Stehule
> > wrote:
> > > here is new update - check is done before any creating
> >
> > It may be better to do any checks before dropping existing
Hi
2017-02-13 6:46 GMT+01:00 Michael Paquier :
> On Sat, Feb 11, 2017 at 3:03 PM, Pavel Stehule
> wrote:
> > here is new update - check is done before any creating
>
> It may be better to do any checks before dropping existing databases
> as well... It would be as well just simpler to complain w
On Sat, Feb 11, 2017 at 3:03 PM, Pavel Stehule wrote:
> here is new update - check is done before any creating
It may be better to do any checks before dropping existing databases
as well... It would be as well just simpler to complain with a single
error message like "database and template list
Hi
2017-02-10 6:00 GMT+01:00 Michael Paquier :
> On Thu, Feb 9, 2017 at 5:13 AM, Pavel Stehule
> wrote:
> > here is a patch
>
> Thanks.
>
> - for (sl = dblist; sl; sl = sl->next)
> - create_database(sl->str);
> + if (templatelist != NULL)
> + {
> + _stringli
On Thu, Feb 9, 2017 at 5:13 AM, Pavel Stehule wrote:
> here is a patch
Thanks.
- for (sl = dblist; sl; sl = sl->next)
- create_database(sl->str);
+ if (templatelist != NULL)
+ {
+ _stringlist *tl;
+
+ for (sl = dblist, tl = templatelist; sl; sl = s
Hi
2017-02-08 8:33 GMT+01:00 Pavel Stehule :
>
>
> 2017-02-08 8:30 GMT+01:00 Michael Paquier :
>
>> On Wed, Feb 8, 2017 at 4:24 PM, Pavel Stehule
>> wrote:
>> > What is sense for list of databases?
>>
>> ECPG uses it for example, see 0992259.
>>
>> > Some option --template can be great - with ba
2017-02-08 8:30 GMT+01:00 Michael Paquier :
> On Wed, Feb 8, 2017 at 4:24 PM, Pavel Stehule
> wrote:
> > What is sense for list of databases?
>
> ECPG uses it for example, see 0992259.
>
> > Some option --template can be great - with backpatch if it is possible.
>
> That's not really complicated
On Wed, Feb 8, 2017 at 4:24 PM, Pavel Stehule wrote:
> What is sense for list of databases?
ECPG uses it for example, see 0992259.
> Some option --template can be great - with backpatch if it is possible.
That's not really complicated to patch... That could be a nice task
for a starter.
--
Mic
2017-02-08 1:30 GMT+01:00 Michael Paquier :
> On Wed, Feb 8, 2017 at 9:23 AM, Tom Lane wrote:
> > I ran into a use-case just today: I wanted to run one particular
> > regression test script under CLOBBER_CACHE_ALWAYS, but it needed
> > stuff created by earlier scripts, and I didn't especially wan
On Wed, Feb 8, 2017 at 9:23 AM, Tom Lane wrote:
> I ran into a use-case just today: I wanted to run one particular
> regression test script under CLOBBER_CACHE_ALWAYS, but it needed
> stuff created by earlier scripts, and I didn't especially want to
> run all of those scripts under CCA. With a wa
On 2017-02-07 19:23:45 -0500, Tom Lane wrote:
> Michael Paquier writes:
> > On Wed, Feb 8, 2017 at 12:43 AM, Pavel Stehule
> > wrote:
> >> Is possible to specify template database for pg_regress?
> >> I have to run tests on database with thousands database objects. Using
> >> template is much fa
Michael Paquier writes:
> On Wed, Feb 8, 2017 at 12:43 AM, Pavel Stehule
> wrote:
>> Is possible to specify template database for pg_regress?
>> I have to run tests on database with thousands database objects. Using
>> template is much faster than import these objects.
> Not directly, all the d
On Wed, Feb 8, 2017 at 12:43 AM, Pavel Stehule wrote:
> Is possible to specify template database for pg_regress?
> I have to run tests on database with thousands database objects. Using
> template is much faster than import these objects.
Not directly, all the databases created by pg_regress are
Hi
Is possible to specify template database for pg_regress?
I have to run tests on database with thousands database objects. Using
template is much faster than import these objects.
Regards
Pavel
24 matches
Mail list logo