Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nA6rD-0003Ku-G0 for pgsql-general@arkaria.postgresql.org; Wed, 19 Jan 2022 09:02:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nA6rC-0002eN-DD for pgsql-general@arkaria.postgresql.org; Wed, 19 Jan 2022 09:02:18 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nA6rC-0002ds-1H for pgsql-general@lists.postgresql.org; Wed, 19 Jan 2022 09:02:18 +0000 Received: from lana.depesz.com ([88.198.49.178] helo=depesz.com) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nA6r5-0007d6-L3 for pgsql-general@lists.postgresql.org; Wed, 19 Jan 2022 09:02:17 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=depesz.com; s=20170201; h=In-Reply-To:Content-Type:MIME-Version:References:Reply-To: Message-ID:Subject:Cc:To:Sender:From:Date:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=ZkZV3S9Pabhl7vsu/utcj3g81xrEzUT/BlRkLdDqIdI=; b=LubJ3EzAxI875w/qdn3GP1qTCo V2nyVLny1o5s/Yj1FGqufY37oxiK07JGsuplHBDAOBKWrzyXGcvg+/tmfEtYPkHcxVFClIyW+rai7 YBbuV88vBxrHPC/Bib+pzsXxiFvbdZoROMMJrWe5ym5v1OB4pG6qe9Jp30KQJvqi0pUU=; Received: from lana.depesz.com ([88.198.49.178] helo=depesz.com) by depesz.com with esmtpa (Exim 4.92) (envelope-from ) id 1nA6r3-0005Fl-Lo; Wed, 19 Jan 2022 10:02:09 +0100 Date: Wed, 19 Jan 2022 10:02:09 +0100 From: hubert depesz lubaczewski Sender: depesz@depesz.com To: Shaozhong SHI Cc: pgsql-general Subject: Re: How to schedule running of a script? Message-ID: <20220119090209.GA19022@depesz.com> Reply-To: depesz@depesz.com References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, Jan 19, 2022 at 05:10:29AM +0000, Shaozhong SHI wrote: > Can a script be scheduled to run within Postgres? https://www.depesz.com/2021/01/15/how-to-run-some-tasks-without-user-intervention-at-specific-times/ https://www.depesz.com/2021/01/28/how-to-run-some-tasks-without-user-intervention-at-specific-times-part-2/ depesz