Re: Localizing stored functions by replacing placeholders in their body

From: Alexander Farber <alexander(dot)farber(at)gmail(dot)com>
To:
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Localizing stored functions by replacing placeholders in their body
Date: 2021-03-02 17:30:23
Message-ID: CAADeyWhpBYk4ZPhJ3Rf=b8e7Z=JNWcJK0pcDezE_aWtK6yZmAw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I think I will try this approach:

\set localized_declaration `sed 's/this/that/' my_func.sql`
:localized_declaration

Thank you for your input

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Asaf Flescher 2021-03-02 20:18:35 Locks in creating a partition in CREATE TABLE vs ALTER TABLE
Previous Message Alexander Farber 2021-03-02 17:04:34 Re: Localizing stored functions by replacing placeholders in their body