Re: RFC: adding pytest as a supported test framework

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Matthias van de Meent <boekewurm+postgres(at)gmail(dot)com>, Greg Sabino Mullane <htamfids(at)gmail(dot)com>, Jelte Fennema-Nio <postgres(at)jeltef(dot)nl>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Robert Haas <robertmhaas(at)gmail(dot)com>, Jacob Champion <jacob(dot)champion(at)enterprisedb(dot)com>, Daniel Gustafsson <daniel(at)yesql(dot)se>, Andres Freund <andres(at)anarazel(dot)de>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: RFC: adding pytest as a supported test framework
Date: 2024-06-17 16:21:10
Message-ID: 7e230178-7549-4adf-b1a9-aac3623cdf8c@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


On 2024-06-17 Mo 4:27 AM, Matthias van de Meent wrote:
> Hi Greg, Jelte,
>
> On Sat, 15 Jun 2024 at 23:53, Greg Sabino Mullane <htamfids(at)gmail(dot)com>
> wrote:
>
> > Those young-uns are also the same group who hold their nose when
> coding in C, and are always clamoring for rewriting Postgres in Rust.
>
> Could you point me to one occasion I have 'always' clamored for this,
> or any of "those young-uns" in the community? I may not be a huge fan
> of C, but rewriting PostgreSQL in [other language] is not on the list
> of things I'm clamoring for. I may have given off-hand mentions that
> [other language] would've helped in certain cases, sure, but I'd
> hardly call that clamoring.
>
>

Greg was being a but jocular here. I didn't take him seriously. But
there's maybe a better case to make the point he was making. Back in the
dark ages we used a source code control system called CVS. It's quite
unlike git and has a great many limitations and uglinesses, and there
was some pressure for us to move off it. If we had done so when it was
first suggested, we would probably have moved to using Subversion, which
is rather like CVS with many of the warts knocked off. Before long, some
distributed systems like Mercurial and git came along, and we, like most
of the world, chose git. Thus by waiting and not immediately doing what
was suggested we got a better solution. Moving twice would have been ...
painful.

I have written Python in the past. Not a huge amount, but it doesn't
feel like a foreign country to me, just the next town over instead of my
immediate neighbourhood. We even have a python script in the buildfarm
server code (not written by me). I'm sure if we started writing tests in
Python I would adjust. But I think we need to know what the advantages
are, beyond simple language preference. And to get to an equivalent
place for Python that we are at with perl will involve some work.

cheers

andrew

--
Andrew Dunstan
EDB: https://www.enterprisedb.com

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Jacob Champion 2024-06-17 16:23:09 Re: Direct SSL connection and ALPN loose ends
Previous Message Aleksander Alekseev 2024-06-17 16:12:31 Re: [PATCH] Improve error message when trying to lock virtual tuple.