public inbox for pgsql-novice@postgresql.org
help / color / mirror / Atom feedFrom: Laurenz Albe <laurenz.albe@cybertec.at>
To: Subramanian,Ramachandran <ramachandran.subramanian@alte-leipziger.de>
To: pgsql-novice@lists.postgresql.org <pgsql-novice@lists.postgresql.org>
Subject: Re: Executing INSERTs from a file but with a wait delay.
Date: Tue, 14 Apr 2026 12:58:07 +0200
Message-ID: <248dbae08b024e035a3ef1811d20f8defa8f232c.camel@cybertec.at> (raw)
In-Reply-To: <ebf0d5681be44a72807aca0ee6b0e1ea@alte-leipziger.de>
References: <ebf0d5681be44a72807aca0ee6b0e1ea@alte-leipziger.de>
On Tue, 2026-04-14 at 08:17 +0000, Subramanian,Ramachandran wrote:
> Let us say that I have 10 Insert statements in a file called run_inserts.sql .
>
> I run it with psql -p 5432 -f run_inserts.sql.
>
>
> My wish is to find a way to execute it, but I want it to wait after each INSERT till I hit Enter .
>
>
> I could use pg_sleep , but that is a preset value.. I want to make it wait indefinitely till I hit enter.
>
> Is this even possible? Thank you in advance for your help.
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-novice@postgresql.org
Cc: laurenz.albe@cybertec.at, ramachandran.subramanian@alte-leipziger.de, pgsql-novice@lists.postgresql.org
Subject: Re: Executing INSERTs from a file but with a wait delay.
In-Reply-To: <248dbae08b024e035a3ef1811d20f8defa8f232c.camel@cybertec.at>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox