Comments (5)
Thanks for the bug report! I’ll look into it ASAP.
from pg-audit-json.
I got hit with this issue as well. Please see details below of PG version and error message.
PostgreSQL 10.8 (Ubuntu 10.8-0ubuntu0.18.04.1) on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 7.3.0-16ubuntu3) 7.3.0, 64-bit
ERROR: operator does not exist: jsonb - jsonb LINE 1: SELECT (to_jsonb(NEW.*) - audit_row.row_data) - excluded_col... ^ HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts. QUERY: SELECT (to_jsonb(NEW.*) - audit_row.row_data) - excluded_cols CONTEXT: PL/pgSQL function audit.if_modified_func() line 48 at assignment SQL state: 42883
from pg-audit-json.
Oh no! OK I'll prioritize this.
Out of curiosity, if you run \df
and \do
do you see the following?
postgres=# \df
List of functions
Schema | Name | Result data type | Argument data types | Type
--------+-------------+------------------+-----------------------------+------
public | jsonb_minus | jsonb | "left" jsonb, "right" jsonb | func
public | jsonb_minus | jsonb | "left" jsonb, keys text[] | func
(2 rows)
postgres=# \do
List of operators
Schema | Name | Left arg type | Right arg type | Result type | Description
--------+------+---------------+----------------+-------------+--------------------------------------------------------------------
public | - | jsonb | jsonb | jsonb | Delete matching pairs in the right argument from the left argument
public | - | jsonb | text[] | jsonb | Delete specified keys
(2 rows)
Specifically, we're looking to see if the json_minus
function was correctly setup
from pg-audit-json.
Yes...Thank you!
sandbox=# \df public.*
List of functions
Schema | Name | Result data type | Argument data types | Type
--------+-------------+------------------+-----------------------------+--------
public | jsonb_minus | jsonb | "left" jsonb, keys text[] | normal
public | jsonb_minus | jsonb | "left" jsonb, "right" jsonb | normal
(2 rows)
sandbox=# \do public.*
List of operators
Schema | Name | Left arg type | Right arg type | Result type | Description
--------+------+---------------+----------------+-------------+--------------------------------------------------------------------
public | - | jsonb | jsonb | jsonb | Delete matching pairs in the right argument from the left argument
public | - | jsonb | text[] | jsonb | Delete specificed keys
(2 rows)
from pg-audit-json.
Interesting. OK what permissions do the functions have, you can get those with:
SELECT proname, proacl FROM pg_proc WHERE proname='jsonb_minus';
Additionally, is there a way you can list for me the steps you took to produce the issue? So that I can try and reproduce on my environment? Thanks!
from pg-audit-json.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pg-audit-json.