Re: pg_dump negation regex

From: Rob Sargent <robjsargent(at)gmail(dot)com>
To: Eudald Valcàrcel Lacasa <eudald(dot)valcarcel(at)gmail(dot)com>
Cc: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>, pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: pg_dump negation regex
Date: 2020-05-07 19:16:30
Message-ID: 035FA42C-1684-4F11-A940-55C7D5093A8A@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> On May 7, 2020, at 1:03 PM, Eudald Valcàrcel Lacasa <eudald(dot)valcarcel(at)gmail(dot)com> wrote:
>
> I know the -T command, but I'm trying to regex the "pattern" in -T in order to exclude all tables named program_1 onwards.
> I believe commonly you'd use -T "program_!0", but the ! negation keyword is not defined.
>
> Thanks,
> Eudald
>

More like ‘program[^0].*’ of there are no leading zero (e.g.09) or ‘program[1-9][0-9]*'

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tory M Blue 2020-05-07 19:24:32 Re: Odd postgres12 upgrade is changing or munging a password?
Previous Message Adrian Klaver 2020-05-07 19:08:10 Re: Odd postgres12 upgrade is changing or munging a password?