Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sbIJV-00FV7P-E1 for pgsql-admin@arkaria.postgresql.org; Tue, 06 Aug 2024 11:25:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1sbIJU-00EjaJ-0z for pgsql-admin@arkaria.postgresql.org; Tue, 06 Aug 2024 11:25:12 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sbIJT-00Eja2-M5 for pgsql-admin@lists.postgresql.org; Tue, 06 Aug 2024 11:25:11 +0000 Received: from mail-vs1-xe2e.google.com ([2607:f8b0:4864:20::e2e]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1sbIJR-003SEU-Ip for pgsql-admin@lists.postgresql.org; Tue, 06 Aug 2024 11:25:11 +0000 Received: by mail-vs1-xe2e.google.com with SMTP id ada2fe7eead31-4929f9a28c7so158060137.1 for ; Tue, 06 Aug 2024 04:25:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722943508; x=1723548308; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=8zsiYvEqMj4rWcKHvfKL7Xe/AwM4TbiK/eT6p+1ZG+c=; b=SxK/wc8omjtN5moNBPzsmpGI0Wro2LrqpZb3eTf/eft30RSW2pDEGMlAf3IqF49oee sEK2s1QIZ6qBmq9jbQBZpEWyB53RVNTTYsiImif4psR8clPFq5I2tPqh8l320RVPOjqh WP6+ww331JMhY5qd8/IMmY6SdGuvZZVtYRWHg/LKyY+sdn5oEY7+ts0234bqbe8FI2xZ fif7x2I8fDokzO5RCEu8ZPOU0OuZBQjjp75PfqdsW9MEJX9Hlq7XoAfYgbhvwSMqKgi9 BneyUkKgyUbE8YK5LQMuqUGxrU6TxQ/4Dqgj4UH5p4MDU/lYsPQ7Ki4l4H7LiS3N6vQo rDFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722943508; x=1723548308; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=8zsiYvEqMj4rWcKHvfKL7Xe/AwM4TbiK/eT6p+1ZG+c=; b=qMEfQRkaaqI1HzAcx/h1LSf5xX7SuYvdWWb0j7yEiQDUMhlzV6uH9p0l1Y04mbIjI6 n+6zApBzH4bQtuj5kYiAxNK8L/1xr6IWtDOF1AKnDsUSd7jKTsKDwuKEE11JKNBEm1/n PEA9sFO+h7TgptTTcDBMMUbRWalOTo6zjI1fHIyg/4XHQwG9m36Px5gRKbBVkJeXYHcX WxqZ2lYWZNh5udff43e2DD3KntYfdfyN3kJb/8A5+I7YqCFU/x4jefy8dXuzCVwio2Ap L3+L2aTTxmG9OUA/LCCrtL5OG9Jj4F/sMaSAqwly8wmnYMXvpm22Al0yBW1SLl9Bwx17 29rQ== X-Gm-Message-State: AOJu0Yw2REw4oquKGxiAuWQsk6BFW+BOp4lYcfGosNaYV5N9jDS4L/HX W0nBlfRmEg8FGQ6jYJU4N9Q4ONdu9sgg7zOvh3PGjTr5VTzF10rBd4gjgU3zPRH7+WU0aQQerre oRRUuEXQqBQ23ued9wDjIpwUWuFg= X-Google-Smtp-Source: AGHT+IFjh7g/HWAydi7o6MtE/9gVNcdLBPIuVi3rxs+fkdp+tEisJVvUFszmmfXPdl+AGPbkKzZTxogAnZVEXWDdxsg= X-Received: by 2002:a05:6102:32d5:b0:48f:4580:fb0c with SMTP id ada2fe7eead31-4945bed092emr17865725137.24.1722943507824; Tue, 06 Aug 2024 04:25:07 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Kashif Zeeshan Date: Tue, 6 Aug 2024 16:24:57 +0500 Message-ID: Subject: Re: Pg_repack To: Sathish Reddy Cc: pgsql-admin@lists.postgresql.org Content-Type: multipart/alternative; boundary="000000000000c089fe061f020be8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000c089fe061f020be8 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Sathish It's better to script it using any scripting language e.g. SHELL Scripting as PL/pgSQL etc don't allow accessing Utilities from stored procedures. Thanks Kashif Zeeshan On Tue, Aug 6, 2024 at 4:10=E2=80=AFPM Sathish Reddy < sathishreddy.postgresql@gmail.com> wrote: > Hi > We planning to create store procedure (function) in postgres database t= o > run pg_repack on removing bloating of table or index by using within > postgres instance. > > Please help me on details on steps with example for same. > > > Thanks > Sathishreddy > --000000000000c089fe061f020be8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Sathish

It's better t= o script it using=C2=A0any scripting language e.g. SHELL Scripting as PL/pg= SQL etc don't allow accessing Utilities=C2=A0from stored=C2=A0procedure= s.

Thanks
Kashif Zeeshan

On Tue, Aug 6, 2= 024 at 4:10=E2=80=AFPM Sathish Reddy <sathishreddy.postgresql@gmail.com> wrote:
Hi=C2=A0
=C2=A0 We planning to create store procedure (function) in pos= tgres database to run pg_repack on removing bloating of table or index by u= sing within postgres instance.
=C2=A0=C2=A0
=C2=A0= =C2=A0 Please help me on details on steps with example for same.


Thanks=C2=A0
Sathishred= dy=C2=A0
--000000000000c089fe061f020be8--