From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Kalyani Maity <bimal.af2020@gmail.com>
To: pgsql-admin@lists.postgresql.org
Subject: Re: Oracle to Postgres Migration
Date: Thu, 01 Feb 2024 13:38:16 +0100
Message-ID: <e6740c8dd34034502736c48a8e35c14e9975054b.camel@cybertec.at> (raw)
In-Reply-To: <CACr=-MX6YEuL2M0hXwr-SoLx1aTpfFmsY0bguQLA11P18RBojQ@mail.gmail.com>
References: <CACr=-MX6YEuL2M0hXwr-SoLx1aTpfFmsY0bguQLA11P18RBojQ@mail.gmail.com>
On Thu, 2024-02-01 at 16:20 +0530, Kalyani Maity wrote:
> I have one scenario where one synonym created as below in oracle DB:
>
> create synonym 'schema1.procedure1' for 'schema2.procedure1'
>
> procedure1 only exist in schema2.
>
> I have migrated both schema 1 and schema 2 in postgres.
>
> How to create this synonym in postgres.
You don't. Instead, you set "search_path" to include both schemas.
Yours,
Laurenz Albe
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-admin@postgresql.org
Cc: laurenz.albe@cybertec.at, bimal.af2020@gmail.com, pgsql-admin@lists.postgresql.org
Subject: Re: Oracle to Postgres Migration
In-Reply-To: <e6740c8dd34034502736c48a8e35c14e9975054b.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 DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox