Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/amazon-web-services/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Postgresql Postgres程序不适用于AWS RDS Postgres安装_Postgresql_Amazon Web Services_Amazon Rds_Postgresql 9.5 - Fatal编程技术网

Postgresql Postgres程序不适用于AWS RDS Postgres安装

Postgresql Postgres程序不适用于AWS RDS Postgres安装,postgresql,amazon-web-services,amazon-rds,postgresql-9.5,Postgresql,Amazon Web Services,Amazon Rds,Postgresql 9.5,我有以下程序 Create or replace procedure test_data (user_id character varying, out ob_success_flag Boolean) IS Declare Begin If (user_id is not null) then Ob_success_flag = true; Else Ob_success_flag = false; End if; End; Commit; 正在进行PostgreSQL serv

我有以下程序

Create or replace procedure test_data (user_id character varying, out ob_success_flag Boolean) IS
Declare
Begin
If (user_id is not null) then
  Ob_success_flag = true;
Else
  Ob_success_flag = false;
End if;
  End;
Commit;
正在进行PostgreSQL server 9.5的自托管安装

但是,当我使用AWS RDS PostgreSQL创建实例服务器时,以下过程不起作用

它在
程序附近显示错误


连接到两个实例时使用相同的pgAdmin客户端

据我所知,Postgresql不允许在过程中使用out参数。但允许使用Inout参数。 这应该是一个有效的plpgsql过程:

create or replace procedure test_data (user_id character varying, inout ob_success_flag boolean) 
as $$
Begin
If (user_id is not null) then
  Ob_success_flag = true;
Else
  Ob_success_flag = false;
End if;
End;
$$ language plpgsql;
致以最良好的祝愿,
比亚尼

Postgres 9.1没有程序。我不知道它如何在9.1上工作,因为程序是在第11页介绍的。AWS PG中的程序是否有效取决于版本。您创建它的语法也不正确。@404我的错误,使用9.5。刚刚再次确认了版本。正如404已经写到的:存储过程是在Postgres 11中引入的-Postgres 9.5不会工作。对不起,我的错误是本地安装的是Edb 9.5而不是postgre 9.5
https://www.enterprisedb.com/
。它也建立在postgre之上,这造成了一些混乱。