From: hubert depesz lubaczewski <depesz@depesz.com>
To: Shaozhong SHI <shishaozhong@gmail.com>
Cc: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: Re: Can we use sql language to create a function in Postgres?
Date: Wed, 5 Jan 2022 12:34:26 +0100
Message-ID: <20220105113426.GA14488@depesz.com> (raw)
In-Reply-To: <CA+i5JwY_=zsFewDrTWQ7fw5E6EBjnYVHBfTEUVfZV-pD+AXoUQ@mail.gmail.com>
References: <CA+i5JwaqmXc1KWVORo0xpSO0wb8tMfrFEojxV08gnR6Jb5FLyw@mail.gmail.com>
<20220105111258.GA18163@depesz.com>
<CA+i5JwY_=zsFewDrTWQ7fw5E6EBjnYVHBfTEUVfZV-pD+AXoUQ@mail.gmail.com>
On Wed, Jan 05, 2022 at 11:22:34AM +0000, Shaozhong SHI wrote:
> If so, can we use Oracle SQL script in DO block?
>
> Does this mean that all Oracle SQL can be used in Postgres?
I highly doubt that.
But - I used oracle last time like 2 years ago, so the only thing I can
tell you: TRY.
instead of asking if "something vague wll work" just try. it will work,
or not work, but I can't guess what you have in this "oracle sql" and
whether this particular bit of sql will be cross-plaftorm enough to
execute (or even parse) in pg.
depesz
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: depesz@depesz.com, shishaozhong@gmail.com
Subject: Re: Can we use sql language to create a function in Postgres?
In-Reply-To: <20220105113426.GA14488@depesz.com>
References: <CA+i5JwaqmXc1KWVORo0xpSO0wb8tMfrFEojxV08gnR6Jb5FLyw@mail.gmail.com> <20220105111258.GA18163@depesz.com> <CA+i5JwY_=zsFewDrTWQ7fw5E6EBjnYVHBfTEUVfZV-pD+AXoUQ@mail.gmail.com> <20220105113426.GA14488@depesz.com>
* 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