Comments (2)
Is this true? Can you please show an example of the quotes having an effect?
from pgaudit.
Not on pgaudit itself, as mentioned it doesn't matter in practice here, but it gives a false sense of doing the right thing.
See this example:
create schema if not exists "public, pg_catalog, pg_temp";
create or replace function public.f1() returns timestamptz as $$
SELECT now();
$$ language sql;
create or replace function "public, pg_catalog, pg_temp".f1() returns timestamptz as $$
BEGIN
RETURN '1900-01-01'::timestamptz;
END
$$ language plpgsql;
create or replace function test_function() returns timestamptz AS $$
SELECT f1();
$$ language sql;
create or replace function test_function2() returns timestamptz AS $$
SELECT f1();
$$ language sql
SET search_path = public, pg_catalog, pg_temp;
create or replace function test_function3() returns timestamptz AS $$
SELECT f1();
$$ language sql
SET search_path = 'public, pg_catalog, pg_temp';
Now running that:
ro=# SELECT
test_function() as default_search_path,
test_function2() as correct_search_path,
test_function3() as quoted_search_path;
default_search_path | correct_search_path | quoted_search_path
------------------------------+------------------------------+------------------------------
2023-10-27 08:24:40.94749+02 | 2023-10-27 08:24:40.94749+02 | 1900-01-01 00:00:00+00:09:21
(1 ligne)
from pgaudit.
Related Issues (20)
- Unable to find required files
- Unable to install pgaudit on RHEL 8 HOT 1
- Pgaudit make command fails for REL_13_STABLE
- Connection Drop and PgAudit disabled HOT 5
- Exclude role/user in auditing when superuser role is not available HOT 1
- PgAudit stack is not empty HOT 1
- Multiple errors : Generating during creation of pgaudit.dll
- number of effected rows HOT 1
- Redirect audit output HOT 1
- os x install (brew postgresql 14): permission denied error HOT 2
- Need only Object Audit Logging in audit logs HOT 3
- fine grained auditing based on uers
- When enabling pgaudit.log_rows parameter, Object Audit Logging feature does not work on COPY statement
- pgaudit across multiple databases - separate instances needed? HOT 2
- Segmentation fault when *NOT* class = 'DDL' HOT 2
- PostgreSQL 17 support HOT 1
- Alter pgaudit extension from pg15 to pg16 not working
- Pgaudit extension uninstalled, but still generating copious audit logs HOT 1
- Unable to set up pdaudit on my Windows OS
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 pgaudit.