Re: psql and regex not like

Поиск
Список
Период
Сортировка
От Hans Schou
Тема Re: psql and regex not like
Дата
Msg-id CAApBw36EV+nVtSLp1Oq-ovSSNq6dN=Owr95Ju8kBe+=YQ7JjdA@mail.gmail.com
обсуждение исходный текст
Ответ на psql and regex not like  (Ron Johnson <ronljohnsonjr@gmail.com>)
Список pgsql-general
On Thu, Mar 6, 2025 at 10:38 AM Ron Johnson <ronljohnsonjr@gmail.com> wrote:
psql -Xc "select datname from pg_database WHERE datname \!~ 'template|postgres' ORDER BY datname;"

Remove the space:

psql -Xc "select datname from pg_database WHERE datname!~ 'template|postgres' ORDER BY datname"

I'm not really sure why as this one works:
psql -c "SELECT ' !'"

В списке pgsql-general по дате отправления: