Re: Merge statement

From: Pepe TD Vo <pepevo(at)yahoo(dot)com>
To: Morris de Oryx <morrisdeoryx(at)gmail(dot)com>
Cc: Pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Re: Merge statement
Date: 2019-09-23 14:34:23
Message-ID: 647259260.7679971.1569249263294@mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

good morning, happy Monday.
fyi, I upgraded postgres in AWS to 11.1 and the merge function for procedure is still not working. Still complained the same error that: ERROR:  "ecisdrdm.application_cdim" is not a known variableLINE 14: MERGE INTO ecisdrdm.application_cdim prod                    ^SQL state: 42601Character: 348

v/r,
Bach-Nga

No one in this world is pure and perfect.  If you avoid people for their mistakes you will be alone. So judge less, love and forgive more.To call him a dog hardly seems to do him justice though in as much as he had four legs, a tail, and barked, I admit he was, to all outward appearances. But to those who knew him well, he was a perfect gentleman (Hermione Gingold)
**Live simply **Love generously **Care deeply **Speak kindly.*** Genuinely rich *** Faithful talent *** Sharing success

On Sunday, September 22, 2019, 10:36:01 PM EDT, Morris de Oryx <morrisdeoryx(at)gmail(dot)com> wrote:

Postgres has had stored functions for ages, but only added stored procedures in version 11. Historically, you'll see people calling stored functions in Postgres "stored procedures" as that's what other folks call them. It didn't matter because Postgres only had the one thing. For what's new in Postgres 11 stored procedures, here's a place to look:
https://severalnines.com/database-blog/overview-new-stored-procedures-postgresql-11

The change you're referring to is that a stored procedure (but not a function) has the ability to manage its own transaction blocks.
I actually have no clue...I've only read about the new stored procedures. But if you're coming from Oracle, you're likely looking for PG 11 stored procedures, at least some of the time.



In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Keith 2019-09-23 14:48:39 Re: Merge statement
Previous Message Milan Oparnica 2019-09-23 09:07:28 Re: POSTGRES ISSUES