Re: Add to

From: Dagfinn Ilmari Mannsåker <ilmari(at)ilmari(dot)org>
To: Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Add to
Date: 2022-10-05 10:36:36
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)com> writes:

> Thinking ahead a bit, we need to add to
> Maybe someone can think of a better sed expression, but this one seems
> good enough to me for now.
> +sed_file("",
> + qq{-e "1,20s/ version: '[0-9a-z.]*',/ version: '$fullversion',/"}
> +);

I think it would be better to not rely on the line numbers, but instead
limit it to the project() stanza, something like this:

qq{-e "/^project(/,/^)/ s/ version: '[0-9a-z.]*',/ version: '$fullversion',/"}

- ilmari

In response to


Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2022-10-05 10:55:23 Re: [BUG] parenting a PK constraint to a self-FK one (Was: Self FK oddity when attaching a partition)
Previous Message David Rowley 2022-10-05 10:22:33 Re: shadow variables - pg15 edition