Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.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 自定义表触发器可以与Heroku Postgres一起使用吗?_Postgresql_Heroku - Fatal编程技术网

Postgresql 自定义表触发器可以与Heroku Postgres一起使用吗?

Postgresql 自定义表触发器可以与Heroku Postgres一起使用吗?,postgresql,heroku,Postgresql,Heroku,我的本地postgres db触发器工作正常,但不会在部署的Heroku实例上触发 安装了以下功能: project::DATABASE=> \dft List of functions Schema | Name | Result data type | Argument data types | Type --------+------------------+------------------+-

我的本地postgres db触发器工作正常,但不会在部署的Heroku实例上触发

安装了以下功能:

project::DATABASE=> \dft
                             List of functions
 Schema |       Name       | Result data type | Argument data types | Type 
--------+------------------+------------------+---------------------+------
 public | edit_appointment | trigger          |                     | func
 public | new_appointment  | trigger          |                     | func
(2 rows)
当我试图显示详细信息时,我得到一个错误:

project::DATABASE=> \d appointment_schedule 
ERROR:  column c.relhasoids does not exist
LINE 1: ...riggers, c.relrowsecurity, c.relforcerowsecurity, c.relhasoi...
我能够安装触发器和功能,但无法启动:

project::DATABASE=> select * from appointment_schedule where objid = 25;
 objid |          created           | lesson_detail_id | lesson_info | time_increment_id | start_time | end_time | lesson_type | instructor_id | instructor | client_id | client | confirmed | last_edit 
-------+----------------------------+------------------+-------------+-------------------+------------+----------+-------------+---------------+------------+-----------+--------+-----------+-----------
    25 | 2021-04-03 02:08:58.933837 |                1 |  Day ->     |                   |            |          |             |               |            |           |        |           |
更新记录,该记录应在这些列中给出开始时间和结束时间

project::DATABASE=> update appointment_schedule set time_increment_id = 8 where objid=25;                   
UPDATE 1
结果:

project::DATABASE=> select * from appointment_schedule where objid = 25;                 
 objid |          created           | lesson_detail_id | lesson_info | time_increment_id | start_time | end_time | lesson_type | instructor_id | instructor | client_id | client | confirmed | last_edit 
-------+----------------------------+------------------+-------------+-------------------+------------+----------+-------------+---------------+------------+-----------+--------+-----------+-----------
    25 | 2021-04-03 02:08:58.933837 |                1 |  Day ->     |                 8 |            |          |             |               |            |           |        |           | 
(1 row)
我不知道这里发生了什么

请向任何了解Heroku博士后的人寻求帮助