\i and \watch

From: Edwin UY <edwin(dot)uy(at)gmail(dot)com>
To: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: \i and \watch
Date: 2024-11-07 05:09:55
Message-ID: CA+wokJ-NAMMVdo52WdwmGN8CasaE026jhRH7yb1MFU2eF=HeEw@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi,

Is there no way to use \watch to let it run the last script that I just run?

When do I do as below:

select 1 ;
\i x.sql
\watch 20

It runs select 1 instead.

At the moment, a workaround is I run the content of x.sql itself and then
run watch.
Please advise. Thanks.

Regards,
Ed

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message David G. Johnston 2024-11-07 05:26:53 Re: \i and \watch
Previous Message Alvaro Herrera 2024-11-06 16:03:00 Re: Bytea datatype content to view