| From: | Dagfinn Ilmari Mannsåker <ilmari(at)ilmari(dot)org> | 
|---|---|
| To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> | 
| Cc: | Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>, Andres Freund <andres(at)anarazel(dot)de>, Andrew Dunstan <andrew(at)dunslane(dot)net>, "Bossart, Nathan" <bossartn(at)amazon(dot)com>, Kyotaro Horiguchi <horikyota(dot)ntt(at)gmail(dot)com>, "masao(dot)fujii(at)oss(dot)nttdata(dot)com" <masao(dot)fujii(at)oss(dot)nttdata(dot)com>, "pgsql-hackers(at)lists(dot)postgresql(dot)org" <pgsql-hackers(at)lists(dot)postgresql(dot)org>, "mengjuan(dot)cmj(at)alibaba-inc(dot)com" <mengjuan(dot)cmj(at)alibaba-inc(dot)com>, "Jakub(dot)Wartak(at)tomtom(dot)com" <Jakub(dot)Wartak(at)tomtom(dot)com>, Ryo Matsumura <matsumura(dot)ryo(at)fujitsu(dot)com> | 
| Subject: | Re: prevent immature WAL streaming | 
| Date: | 2021-11-10 13:31:06 | 
| Message-ID: | 8735o4qgrp.fsf@wibble.ilmari.org | 
| Views: | Whole Thread | Raw Message | Download mbox | Resend email | 
| Thread: | |
| Lists: | pgsql-hackers | 
Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> writes:
> Also, I think we want
>
> -ok($initfile != $endfile, "$initfile differs from $endfile");
> +ok($initfile ne $endfile, "$initfile differs from $endfile");
>
> The existing coding works as long as all characters of these
> WAL segment names happen to be decimal digits, but ...
Even better style (IMO) would be:
isnt($initfile, $endfile, "WAL file name has changed");
Or some other more descriptive message of _why_ it should have changed.
- ilmari
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Michael Paquier | 2021-11-10 13:44:49 | Re: Add jsonlog log_destination for JSON server logs | 
| Previous Message | Daniel Gustafsson | 2021-11-10 12:59:31 | Re: Removed unused import modules from tap tests |