Re: Merge statement - Mailing list pgsql-admin

From Pepe TD Vo
Subject Re: Merge statement
Date
Msg-id 647259260.7679971.1569249263294@mail.yahoo.com
Whole thread Raw
In response to Re: Merge statement  (Morris de Oryx <morrisdeoryx@gmail.com>)
Responses Re: Merge statement
List 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 variable
LINE 14: MERGE INTO ecisdrdm.application_cdim prod
                    ^
SQL state: 42601
Character: 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@gmail.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:


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.

pgsql-admin by date:

Previous
From: Ekaterina Amez
Date:
Subject: Re: Pg_upgrade error could not load library from 7.14/8.4 to 10.10version
Next
From: Keith
Date:
Subject: Re: Merge statement