Re: [GENERAL] Where is pg_hba.conf

2017-08-14 Thread Arthur Zakirov
ch I > can't find that file. > > Can someone please help? You can execute the query: =# select setting from pg_settings where name = 'hba_file'; -- Arthur Zakirov Postgres Professional: http://www.postgrespro.com Russian Postgres Company -- Sent via pgsql-general mailing list (pgsql-g

Re: [GENERAL] Audit based on role

2017-08-08 Thread Arthur Zakirov
chieve this? > Did you try pgaudit extension? https://github.com/pgaudit/pgaudit -- Arthur Zakirov Postgres Professional: http://www.postgrespro.com Russian Postgres Company -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Configure Qt Creator to work with PostgreSQL to extensions development

2017-06-26 Thread Arthur Zakirov
. I debug them using dbg, but you can do it also from QtCreator. -- Arthur Zakirov Postgres Professional: http://www.postgrespro.com Russian Postgres Company -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Configuration of pgaudit settings in postgreSQL.conf causes postgreSQL to fail to start

2017-09-14 Thread Arthur Zakirov
On Wed, Sep 13, 2017 at 02:42:18PM +, Troy Hardin wrote: > Putting either of these two lines in the .conf file cause it to fail to start. Can you show error messages from logs? -- Arthur Zakirov Postgres Professional: http://www.postgrespro.com Russian Postgres Company -- Sent via pg

Re: [GENERAL] How to get login user name and host name in pgaudit

2017-10-22 Thread Arthur Zakirov
tps://www.postgresql.org/docs/10/static/runtime-config-logging.html#guc-log-line-prefix -- Arthur Zakirov Postgres Professional: http://www.postgrespro.com Russian Postgres Company -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: h

Re: [GENERAL] tgrm index for word_similarity

2017-10-22 Thread Arthur Zakirov
W with the tri-grams so that there is no need to > create them each time the query runs? > As far as I know you can't do it nowadays. You can't create an trigram column, as you can do it for FTS, you can create an tsvector column. -- Arthur Zakirov Postgres Professional: http://www.postgrespr

Re: [GENERAL] Spelling dictionaries

2017-11-10 Thread Arthur Zakirov
n look at its code [3]. 1 - https://www.postgresql.org/docs/current/static/pgtrgm.html#idm4642863576 2 - http://tsdemo.postgrespro.ru/search?pattern=Galaksy=rank_func=ts_rank 3 - https://github.com/postgrespro/apod_fts/blob/master/apod.py -- Arthur Zakirov Postgres Professional: http://www.postgrespro.com

Re: [GENERAL] tgrm index for word_similarity

2017-10-21 Thread Arthur Zakirov
o use operators instead. You can try <% operator and pg_trgm.word_similarity_threshold variable: =# SET pg_trgm.word_similarity_threshold TO 0.1; =# SELECT name, popularity FROM temp.items3_v ,(values ('some phrase'::text)) consts(input) WHERE input <% name ORDER BY 2, input <

Re: [GENERAL] pg_audit to mask literal sql

2017-10-30 Thread Arthur Zakirov
n. pgaudit records this > verbatim which runs afoul of our HIPAA requirement. Prepared statements are > not an issue since pgaudit provides a way to suppress values. > I doubt that. But I'm not sure that I understood you correctly. What do you mean by "mask"? Some additional examples m