文档解释
42P17: invalid_object_definition44000 with_check_option_violation53000 insufficient_resources
错误说明:
Error 42P17: invalid_object_definition44000 with_check_option_violation53000 is an error generated by the PostgreSQL system. This error is raised when a CREATE or ALTER command is issued with an invalid object definition or if the WITH CHECK OPTION for a view is violated when an update or insert statement is attempted.
常见案例
In the case of the CREATE or ALTER command, the error occurs if the object definition is either not valid or cannot be properly understood by the server. For example, if a CREATE command is attempted that is syntactically incorrect or contains references to a non-existent object, this error will be thrown. The WITH CHECK OPTION error occurs when an update or delete statement is attempted against a view and the conditions set by the view’s WITH CHECK OPTION are not met.
解决方法:
In the case of an invalid CREATE or ALTER, the solution is to ensure that the syntax of the command is correct, and that all referenced objects exist. In the case of the WITH CHECK OPTION, the solution is to ensure that any update or delete statements performed against the view are in compliance with the conditions set by the WITH CHECK OPTION clause.
香港美国云服务器首选树叶云,2H2G首月10元开通。
树叶云(shuyeidc.com)提供简单好用,价格厚道的香港/美国云服务器和独立服务器。IDC+ISP+ICP资质。ARIN和APNIC会员。成熟技术团队15年行业经验。
文章来源网络,作者:运维,如若转载,请注明出处:https://shuyeidc.com/wp/254263.html<

