[HACKERS] same new code

2003-06-19 Thread ivan
here is function to get client ip address (only ipv4), server address, and fe/be ports , details inside www.psycho.pl/public/src/pgsql/ivnet.tar.bz2 please test it in yours systems (i tested on Debian 2.4.21 with grsec.) 2. Whatz up with PG_RETURN_UINT16 ?? and with type uintXX ? And why do you

[HACKERS] aliases

2003-07-06 Thread ivan
functions arguments names $1 .. ) and i tkink thet command EXECUTE should exec not SQL command, but plpgsql command, Its very good way to create somthing like eval . Then EXECUTE 'SELECT INTO var 4;'; will be not a problem any more. and what about my functions to ips addreses and ports ???

[HACKERS] errors

2003-07-06 Thread ivan
hi, when be meet error send string to fe. Is possible to be will send error no. with this str, or only errors id ? I mean, this basic errors, like when be crash, or connecting ... It would be easyer and faster to check whats happend. bye ivan ---(end of broadcast

Re: [HACKERS] pg_stat_activity

2003-07-07 Thread ivan
You can create function with security definer as super user sth like this create or replace function func () returns setof pg_stat_activity as ' select * from pg_stat_activity ; ' language SQL SECURITY DEFINER; and if you want to se only query of session user you need to replace * to columns from

[HACKERS] sugsestions

2003-07-08 Thread ivan
jet. It will be a temp table . When i create function [] language SQL there is a error about non-exists table. So i have proposition to include option to create function command : WITH / WITHOUT CHECK ... ? or PRECOMPILE ? What do you think ? thanks :>

Re: [HACKERS] sugsestions

2003-07-10 Thread ivan
On Wed, 9 Jul 2003, Rod Taylor wrote: > On Tue, 2003-07-08 at 21:31, ivan wrote: > > What do you think about : > > > > 1. OPTION RETURNS NULL ON NULL INPUT (when function is created) change to > > RETURNS ON NULL INPUT ??? > > I personally think

[HACKERS] new src :>

2003-07-12 Thread ivan
hi, now i writed support for writing and reading files by select. i created function like in stdio.h iv_fopen (cstring,cstring), iv_fread , etc the FILE * struct is replaced by OID value you can download src from http://www.psycho.pl/public/src/pgsql/files.tar.bz2 and sample to to have /etc/passw

[HACKERS] php with postgres

2003-07-12 Thread ivan
what do you think about plphp ? ---(end of broadcast)--- TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]

Re: [HACKERS] php with postgres

2003-07-12 Thread ivan
On Sat, 12 Jul 2003, Dave Page wrote: > > > > -Original Message- > > From: ivan [mailto:[EMAIL PROTECTED] > > Sent: 12 July 2003 22:34 > > To: [EMAIL PROTECTED] > > Subject: [HACKERS] php with postgres > > > > > > > > what d

Re: [HACKERS] php with postgres

2003-07-13 Thread ivan
what aoubt stream ? in plpgsql you can just write command INSERT ... or DELETE if you want sht like this in php you need to correct zend i think . in php all var is declared as variant type but we need look at realy type. I have other view, to first write php interpreter to postgres, and then wri

[HACKERS] did you read my mails ?

2003-07-13 Thread ivan
someone looked at my files function ?? ---(end of broadcast)--- TIP 7: don't forget to increase your free space map settings

[HACKERS] perm question

2003-07-15 Thread ivan
hi, why when i revoke all on scheme pg_catalog from all (with public) i can make select from pg_ tables and views as ordinary user ?? I can usage this scheme so why i can makeing select ? Then i remove SELECT perm from PUBLIC on pg_ tables and then i cant makeing select from this tables , but i c

Re: [HACKERS] perm question

2003-07-16 Thread ivan
above -- replaced search_path ?? i tryed it witj transaction block , but it was this same result thx :> bye , ivan ---(end of broadcast)--- TIP 4: Don't 'kill -9' the postmaster

Re: [HACKERS] perm question

2003-07-16 Thread ivan
nay be not all, but only select from same function. Is there sht like umask On Wed, 16 Jul 2003, Tom Lane wrote: > ivan <[EMAIL PROTECTED]> writes: > > In my project i need close everything even most of pg_catalog. > > User shoudl exec only special func. and not mor

Re: [HACKERS] did you read my mails ?

2003-07-21 Thread ivan
functions to open,read,write etc files On Mon, 21 Jul 2003, Bruce Momjian wrote: > > What functions are they? > > --- > > ivan wrote: > > > > someo

Re: [HACKERS] did you read my mails ?

2003-07-22 Thread ivan
if you want to see this , there is the src : http://www.psycho.pl/public/src/pgsql/files.tar.bz2 and sample On Mon, 21 Jul 2003, Bruce Momjian wrote: > > I haven't seen those myself. > > -----

[HACKERS] new idea for COPY and MOVE

2003-07-22 Thread ivan
hi what do you tink about : COPY [ namespace1. ] table [ STRUCT ONLY ] TO [namespace2.] table2; MOVE [ namepsace1. ] table TO [namespace2.] table2; and this same whit types, functions etc and : ALERT FUNCTION func (ARGS) SET OWNER new_owner; and : CREATE TYPE new_type AS table; this can by r

Re: [HACKERS] did you read my mails ?

2003-07-23 Thread ivan
think that should be only opction. Just like detecting client ip On Tue, 22 Jul 2003, Bruce Momjian wrote: > > This allows functions to read/write operating system files. Is this of > interest to anyone? > > -

[HACKERS] perm bug ?

2003-07-23 Thread ivan
When ie function is whitout any grant == public have grant to execute it. public or user who have grant to usage on this func. namepsace. I think when i create function , the default grant should be only for owner. specialy when function have security definer . or , i dont know about sth like um

Re: [HACKERS] perm bug ?

2003-07-24 Thread ivan
default grant in runtime settings ?? On Wed, 23 Jul 2003, Tom Lane wrote: > ivan <[EMAIL PROTECTED]> writes: > > I think when i create function , the default grant should be only for > > owner. specialy when function have security definer . > > We did it that way to beg

[HACKERS] arrays

2003-07-27 Thread ivan
hi :> i wrote function to change array to setof record, because better is working with tuples . http://www.psycho.pl/public/src/pgsql/array.tar.bz2 i will very glade when you check this , because im afraid thed i make same mistakes .. (if its good ist could be added to contrib/array as one more

[HACKERS] now about psql and one function

2003-07-28 Thread ivan
in psql , file command.c : 1473 there is a query to check state for superuser, and this query is in begin/end transaction. When user dont have perm to read pg_user its fail but transation is never end, and ist make some confusion because user have to write "END;" or "ROLLBACK;" themself. I just re

Re: [HACKERS] arrays

2003-07-28 Thread ivan
On Sun, 27 Jul 2003, Tom Lane wrote: > ivan <[EMAIL PROTECTED]> writes: > > declaration is setof record array_to_setof ( anyarray); > > > i trayed created it like "any" array_to_setof( anyarray) but i had problem > > with select. i also trying write

Re: [HACKERS] now about psql and one function

2003-07-31 Thread ivan
not have the ability to read pg_user? The query is > gone in 7.4 anyway. > > --- > > ivan wrote: > > > > in psql , file command.c : 1473 there is a query to check state for > > superuser, and t

[HACKERS] problem with cache

2003-08-04 Thread ivan
hi, i have more problems with cache :( i wrote about it latter , but there was no answer. Because when i drop same relation its should be clean cache too, but postgres dont do it . Ist sad because i cant do reload db , i have errors :( what should i do ? ---(end of broadca

Re: [HACKERS] problem with cache

2003-08-04 Thread ivan
drop relation = drop table or drop sequence etc I tryed RelationForgetRelation() but i dont working :( On Mon, 4 Aug 2003, Alvaro Herrera wrote: > On Mon, Aug 04, 2003 at 09:24:49PM +0200, ivan wrote: > > > > hi, i have more problems with cache :( i wrote about it latter , but t

Re: [HACKERS] new psql \d command

2003-08-14 Thread ivan
could be \dn for describe namespace for ei : \dn pg_catalog, or only \dn to list all namespaces ? ---(end of broadcast)--- TIP 6: Have you searched our list archives? http://archives.postgresql.org

[HACKERS] CREATE TYPE

2003-08-16 Thread ivan
Can you add LIKE TO CREATE TYPE too ? There could be also CREATE TYPE ble AS ( LIKE ) , and each colmnu from compose type will be add to table "ble" with static (NOT) NULL, and without defaults. what do you think ? ---(end of broadcast)--- TIP 3:

[HACKERS] DOMAIN NEED CAST ?

2003-08-17 Thread ivan
Why when i create domain like : CREATE DOMAIN alias_to_int AS INT; and then function like : CREATE FUNCTION func() RETURNS alist_to_int AS ' select 2::int; ' LANGUAGE SQL; and pg can not convert int to aliast_to_int, so i need to create cast for all this same types ?

Re: [HACKERS] DOMAIN NEED CAST ?

2003-08-17 Thread ivan
but in real alias_to_int is equal to int, only with other name; its should be like typedef from c/c++ ? On Sun, 17 Aug 2003, Rod Taylor wrote: > On Sun, 2003-08-17 at 12:34, ivan wrote: > > Why when i create domain like : > > > > CREATE DOMAIN alias_to_int AS INT; > >

[HACKERS] numbers format

2003-08-18 Thread ivan
in pg is function to_hex () , but there is no function to_dec, but there could be auto conversion like in c/c++ and others lang. select 0x64; select 0312; ( and like in asm select 01010101b; :-) and also : select char(0x64); or conversion : select '0x64' :: int; need to change parser ? ---

Re: [HACKERS] DOMAIN NEED CAST ?

2003-08-18 Thread ivan
ok, but in this use, but when i need to create datatype, which i use in other tables (to be sure that always is this same) i need to always writing casting to convert int to int ? On Sun, 17 Aug 2003, Rod Taylor wrote: > On Sun, 2003-08-17 at 14:30, ivan wrote: > > but in real alias_

[HACKERS] pgsql in shared lib

2003-09-08 Thread ivan
hi, ist possible to compile postgres (after same small modification) to shared so, or dll , and usr it like normal postgres , but without any server and so on. Its whould be work like simple database (with all funciton in one lib), which dont need any others additionals like (network,other proces

Re: [HACKERS] pgsql in shared lib

2003-09-09 Thread ivan
most simple version of postgres to lib(s), its also could be like porting ?? On Mon, 8 Sep 2003, Tom Lane wrote: > Doug McNaught <[EMAIL PROTECTED]> writes: > > ivan <[EMAIL PROTECTED]> writes: > >> ist possible to compile postgres (after same small modification) t

[HACKERS] md5 function

2004-03-27 Thread ivan
can you create second md5 function like TEXT md5(TEXT string, VARCHAR salt); ? , This is using in shadow passwords and give more combination of this same password. thanks, bye ivan ---(end of broadcast)--- TIP 9: the planner will ignore your

[HACKERS] create type with like

2004-03-28 Thread ivan
hi, we can create table using LIKE syntax , so i think we could create type with LIKE, its quite this same, ?? bye ---(end of broadcast)--- TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]

[HACKERS] query INSERT OR REPLACE

2004-06-02 Thread ivan
Hi In SQLite or MySQL there is a statement INSERT OR REPLACE , is something like this in postgres , or could be ? ---(end of broadcast)--- TIP 4: Don't 'kill -9' the postmaster

[HACKERS] process num.

2004-06-02 Thread ivan
hi where can i set min/max number of process which are waiting for connections from clients ? bye ---(end of broadcast)--- TIP 7: don't forget to increase your free space map settings

[HACKERS] select function & search_path problem/bug?

2004-08-20 Thread ivan
hi, i have a problem with selecting function : db=# select auxilium.exists('arx.mods', 'r'); exists t (1 row) db=# select exists('arx.mods', 'r'); ERROR: syntax error at or near "'arx.mods'" at character 15 db=# show search_path; search_path --- auxi

[HACKERS] question about CURSOR

2003-10-12 Thread ivan
Hi, How can i check how many tules has my declared cursor ? I can set absolute position in cursor , but i dont know how far can i go ? I need it also to set size of my scroll . One more question , when i use declare cursor to show select on grid, better is to use cursor in BEGIN/END WORK, or WITH

[HACKERS] how to put passwd ?

2003-10-20 Thread ivan
hi, how put password to psql, pg_dump etc by same shell script (for ie by crontab) , because there are option -W but passwd is reading from /dev/tty not from stdin , so i can not use | :( ---(end of broadcast)--- TIP 6: Have you searched our list

[HACKERS] Dump error

2003-10-24 Thread ivan
pg_dump: handler procedure for procedural language "plpgsql" not found pg_dumpall: pg_dump failed on database "db", exiting why ? i create this language by script createlang as superuser for this database so, ? :) ---(end of broadcast)--- TIP 7:

[HACKERS] pg_user

2003-10-24 Thread ivan
hi can we change initdb when view pg_user is createing to : CREATE VIEW pg_user AS \ SELECT \ usename, \ usesysid, \ usecreatedb, \ usesuper, \ usecatupd, \ ''::text as passwd, \ valuntil, \ useconfig \ FROM pg_shado

Re: [HACKERS] pg_user

2003-10-30 Thread ivan
: > ivan wrote: > > > hi > > > > can we change initdb when view pg_user is createing to : > > > > CREATE VIEW pg_user AS \ > > SELECT \ > > usename, \ > > usesysid, \ > > usecreatedb, \ > > us

[HACKERS] connections problem

2003-12-26 Thread ivan
hi i need to connect to by my database more then 100 connections, but after ~20-30 conn, postmaster says me "Resource temporarily unavailable", what are this resource ? im using debain with kernel 2.4.23-pre7, on P4 , (postgres 7.4.1) what can be wrong ? ---(end of bro

Re: [HACKERS] connections problem

2003-12-26 Thread ivan
max_connections=200 shared_buffers=2000 ram = 500M + 300M swap hdd = infinite On Fri, 26 Dec 2003, Joshua D. Drake wrote: > > >hi > > > >i need to connect to by my database more then 100 connections, > >but after ~20-30 conn, postmaster says me "Resource temporarily > > > > > >unavailable", wh

Re: [HACKERS] connections problem

2003-12-26 Thread ivan
gt; > Joshua D. Drake > > > ivan wrote: > > >max_connections=200 > >shared_buffers=2000 > > > >ram = 500M + 300M swap > >hdd = infinite > > > > > >On Fri, 26 Dec 2003, Joshua D. Drake wrote: > > > > > > > >>>h

Re: [HACKERS] connections problem

2003-12-26 Thread ivan
ulimit -u = 256 , it's ok, ? On Fri, 26 Dec 2003, Tom Lane wrote: > ivan <[EMAIL PROTECTED]> writes: > > i need to connect to by my database more then 100 connections, > > but after ~20-30 conn, postmaster says me "Resource temporarily > > unavailable&quo

Re: [HACKERS] connections problem

2003-12-26 Thread ivan
(-u) 400 virtual memory(kbytes, -v) unlimited On Fri, 26 Dec 2003, Tom Lane wrote: > ivan <[EMAIL PROTECTED]> writes: > > the error is : could not fork new process for connection: Resource > > temporarily unavailable > > We could have saved some time if you&#

[HACKERS] windows new-line to linux new-line

2003-12-27 Thread ivan
is there same easy way to turn on translation bettwen client and server from linux new-line style (0x0A) to windows style (0x0A0D?) (something like conversions) ? ---(end of broadcast)--- TIP 8: explain analyze is your friend

Re: [HACKERS] new-line

2003-12-27 Thread ivan
its must be in run time, server should has text with linux new line, and if clinet is windows, postgres would convert \n to \n\r but when clinet is also linux postgresa can do nothing about it :) any idea ? On Sat, 27 Dec 2003, [iso-8859-1] Jürgen Cappel wrote: > Hi Ivan, > > mayb

[HACKERS] select from table with unique values

2003-12-28 Thread ivan
hi how to do select from same table to get only unique values from same column(s) ? ---(end of broadcast)--- TIP 3: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PROTECTED] so that your

[HACKERS] cache in plpgsql

2003-12-30 Thread ivan
as new know plpgsql has special cache which remember too long (event non-existing tables (i mean old oid)) so i suggest to create same function only in plpgsql which would clear this cache, or sth like this ? for ie, where i drop table i would do plpgsql_clear_cache (); and when i will create on

Re: [HACKERS] cache in plpgsql

2003-12-31 Thread ivan
etc in function, but using only EXECUTE .. there must be same solution .. no ? On Wed, 31 Dec 2003, Jan Wieck wrote: > ivan wrote: > > >as new know plpgsql has special cache which remember too long (event > >non-existing tables (i mean old oid)) so i suggest to create same f

[HACKERS] Happy New Year ! :) and about gethostbyaddr

2003-12-31 Thread ivan
i didnt find gethostbyaddr, could be this in default implementation ? ---(end of broadcast)--- TIP 6: Have you searched our list archives? http://archives.postgresql.org

Re: [HACKERS] cache in plpgsql

2003-12-31 Thread ivan
but , all in all, do you think that now it is ok ? On Wed, 31 Dec 2003, Jan Wieck wrote: > ivan wrote: > > why all backend can not using one cache, which would be always > > Variable sized shared memory with garbage collection for SPI plans? > > > in real state ... or

[HACKERS] time format

2004-01-01 Thread ivan
how can i change default time format because now i have for example 2004-01-01 16:51:46.995927 but i want only 2004-01-01 16:51:46, with out millisec. a tryed with Data-Style but there arent custom style :/ ---(end of broadcast)--- TIP 6: Have yo

Re: [HACKERS] cache in plpgsql

2004-01-01 Thread ivan
message, not just trigger (i said trigger only to show scheme of acction) ehheh this idea is also wrong ? On Wed, 31 Dec 2003, Jan Wieck wrote: > ivan wrote: > > why all backend can not using one cache, which would be always > > Variable sized shared memory with garbage collectio

Re: [HACKERS] time format

2004-01-03 Thread ivan
but what about default style ? first time when i saw DateStyle i thought that i can use it like C/C++ function strftime. I would be not bad idea to have custom data style :) On Fri, 2 Jan 2004, Christopher Kings-Lynne wrote: > Create table with type TIMESTAMP(0) > > Chris >

Re: [HACKERS] time format

2004-01-03 Thread ivan
ok, bat each time where i want to do select .. a nie tu use to_char, but it should be in function timestamp_out to convert time to string it would be easer and faster. On Sat, 3 Jan 2004, Kurt Roeckx wrote: > On Sat, Jan 03, 2004 at 09:25:14AM +0100, ivan wrote: > > > > but wha

Re: [HACKERS] time format

2004-01-04 Thread ivan
i know, but i talking about default time output, it would be for time, date and date with time, not formating all the time. On Sun, 4 Jan 2004, Tom Lane wrote: > Martin Marques <[EMAIL PROTECTED]> writes: > > Look deeper into what Christopher said and use casting to get the right > > output: > >

[HACKERS] operators +/- with oids

2004-01-05 Thread ivan
why there are no operators +-*/ to oid data type ? ---(end of broadcast)--- TIP 4: Don't 'kill -9' the postmaster

Re: [HACKERS] time format

2004-01-05 Thread ivan
there can be same problems with back convering, but its would be only when select is going out, to cstring form, and all its depend on user, but this is ok :) On Mon, 5 Jan 2004, Karel Zak wrote: > On Sat, Jan 03, 2004 at 10:20:57PM +0100, ivan wrote: > > > > ok, bat each time

[HACKERS] lib for clients

2004-03-01 Thread ivan
hi, is there same packets (or sources to compile) only for client-systems ( headers and libs like libpq, and so on) ? ---(end of broadcast)--- TIP 4: Don't 'kill -9' the postmaster

Re: [HACKERS] lib for clients

2004-03-02 Thread ivan
but on postgres ftps mirrors are only full-packet, -base, -dosc, -opt, and -test , where can be -devel or -libs ? ( use -base ? ) On Mon, 1 Mar 2004, Martin Marques wrote: > El Lun 01 Mar 2004 11:11, ivan escribió: > > hi, > > > > is there same packets (or sources to com

Re: [HACKERS] proposal: get oldest LSN - function

2016-02-26 Thread Kartyshov Ivan
gging purposes. -- Ivan Kartyshov Postgres Professional: www.postgrespro.com Russian Postgres Company -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

Re: [HACKERS] proposal: get oldest LSN - function

2016-02-27 Thread Kartyshov Ivan
«GetXLogOldestLSNPtr» [-Wmissing-prototypes] GetXLogOldestLSNPtr(void) Thanks. Hi Yury, thank for valuable remark. Changes applied -- Ivan Kartyshov Postgres Professional: www.postgrespro.com Russian Postgres Company diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index f9eea76..f774233

Re: [HACKERS] proposal: get oldest LSN - function

2016-02-27 Thread Kartyshov Ivan
On 27.02.2016 16:09, Michael Paquier wrote: On Sat, Feb 27, 2016 at 3:52 PM, Kartyshov Ivan wrote: Maybe i wasn't too accurate in terms, because I newbie, but: We can get information about xlog, using big amout of support function (pg_current_xlog_location(), pg_current_xlog_insert_loc

Re: [HACKERS] proposal: get oldest LSN - function

2016-03-11 Thread Kartyshov Ivan
On 28.02.2016 11:36, Michael Paquier wrote: On Sun, Feb 28, 2016 at 4:40 PM, Kartyshov Ivan wrote: It will not satisfy our purposes and our administrators for three reasons. 1) DBA set me task to get the oldest number that present in WAL, not last Yeah I got that. 2) Surely we can choose

Re: [HACKERS] proposal: get oldest LSN - function

2016-03-11 Thread Kartyshov Ivan
On 11.03.2016 16:33, Kartyshov Ivan wrote: On 28.02.2016 11:36, Michael Paquier wrote: On Sun, Feb 28, 2016 at 4:40 PM, Kartyshov Ivan wrote: It will not satisfy our purposes and our administrators for three reasons. 1) DBA set me task to get the oldest number that present in WAL, not

Re: [HACKERS] [PATH] Correct negative/zero year in to_date/to_timestamp

2016-02-26 Thread Ivan Kartyshov
The following review has been posted through the commitfest application: make installcheck-world: tested, failed Implements feature: tested, failed Spec compliant: tested, failed Documentation:tested, failed Applied this patch, it works well, make what it expected corr

Re: [HACKERS] Sanity checking for ./configure options?

2016-02-26 Thread Ivan Kartyshov
The following review has been posted through the commitfest application: make installcheck-world: tested, failed Implements feature: tested, failed Spec compliant: tested, failed Documentation:tested, failed Tested, I think it`s rather important to make cleanup work on

[HACKERS] proposal: get oldest LSN - function

2016-02-26 Thread Kartyshov Ivan
case. Best regards, -- Ivan Kartyshov Postgres Professional: www.postgrespro.com Russian Postgres Company diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index f9eea76..f774233 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -16908,6 +16908,8 @@ SELECT set_c

Re: [HACKERS] [PATH] Correct negative/zero year in to_date/to_timestamp

2016-02-26 Thread Ivan Kartyshov
> Why does it say "tested, failed" for all points above there? ;-) Hi, I just used Web reviewer form on https://commitfest.postgresql.org to make review on patch, but form doesn't work properly unlike the patch.))

[HACKERS] UPSERT strange behavior

2016-08-25 Thread Ivan Frolkov
Suppose we have some table create table cnt(  usr_id int primary key,  usr_doc_ref text not null,  cnt int,  sum int ); And going to run some insert on conflict update on it (pgbench script): \setrandom id 1 50 insert into cnt as c(usr_id,usr_doc_ref, cnt) values(:id, '#'||:id, 1) on con

[HACKERS] make async slave to wait for lsn to be replayed

2016-08-31 Thread Ivan Kartyshov
ished with success (without NOTICE message) The WAITLSN as expected wait LSN, and interrupts on PostmasterDeath, interrupts or timeout. Your feedback is welcome! --- Ivan Kartyshov Postgres Professional: http://www.postgrespro.com The Russian Postgres Company diff --git a/doc/src/sgml/ref/allfi

[HACKERS] less expensive pg_buffercache on big shmem

2016-08-31 Thread Ivan Kartyshov
d to see your feedback! --- Ivan Kartyshov Postgres Professional: http://www.postgrespro.com The Russian Postgres Company diff --git a/contrib/pg_buffercache/Makefile b/contrib/pg_buffercache/Makefile index 065d3d6..8813c50 100644 --- a/contrib/pg_buffercache/Makefile +++ b/contrib/pg_bufferc

Re: [HACKERS] less expensive pg_buffercache on big shmem

2016-09-02 Thread Ivan Kartyshov
g. On 09/02/2016 06:30 AM, Peter Geoghegan wrote: > I would like to be able to run pg_buffercache in production from time > to time. Yes, in our experience the usage of fully consistent pg_buffercache in production is quite a courageous decision. --- Ivan Kartyshov Postgres Professiona

Re: [HACKERS] less expensive pg_buffercache on big shmem

2016-09-05 Thread Ivan Kartyshov
hirdly, it is slower because it locks the partitions of shared memory in a different way than in consistent or nonconsistent methods. The semi-consistent strategy implies that only one buffer is locked at a time. Therefor has no significant effect on the system, but it takes more time. --- Iva

Re: [HACKERS] make async slave to wait for lsn to be replayed

2016-09-06 Thread Ivan Kartyshov
run queries on it" ? Or something else? Yes you are right, I want to ensure data consistency on downstream before running queries on it. Our clients would use it as a part of background worker and maybe directly in apps too. --- Ivan Kartyshov Postgres Professional: http://www.postgre

Re: [HACKERS] make async slave to wait for lsn to be replayed

2017-10-23 Thread Ivan Kartyshov
to be a LSN would still allow for progress in transaction management. For example, making PostgreSQL distributed will likely want timestamp and/or vector clock based visibility rules. I'm sorry I did not understand exactly what you meant. Please explain this in more detail. -- Ivan Kart

Re: [HACKERS] make async slave to wait for lsn to be replayed

2017-10-23 Thread Ivan Kartyshov
New little cleanup code changes -- Ivan Kartyshov Postgres Professional: http://www.postgrespro.com The Russian Postgres Companycommit 217f842726531edb1b0056a5c5727ab01bab7f9b Author: i.kartyshov Date: Mon Oct 23 12:08:59 2017 +0300 Cherry picked and ported 11dev diff --git a/doc/src

Re: [HACKERS] make async slave to wait for lsn to be replayed

2017-10-23 Thread Ivan Kartyshov
Alexander Korotkov писал 2017-10-23 13:19: Despite code cleanup, you still have some random empty lines removals in your patch. I reconfigured my IDE to avoid this in the future. -- Ivan Kartyshov Postgres Professional: http://www.postgrespro.com The Russian Postgres Companydiff --git a/doc

Re: [HACKERS] WIP: long transactions on hot standby feedback replica / proof of concept

2017-10-24 Thread Ivan Kartyshov
grow) -- Ivan Kartyshov Postgres Professional: http://www.postgrespro.com The Russian Postgres Companydiff --git a/src/backend/catalog/storage.c b/src/backend/catalog/storage.c index 9a5fde0..68decab 100644 --- a/src/backend/catalog/storage.c +++ b/src/backend/catalog/storage.c @@ -31,6

Re: [HACKERS] make async slave to wait for lsn to be replayed

2017-10-30 Thread Ivan Kartyshov
Ants Aasma писал 2017-10-26 17:29: On Mon, Oct 23, 2017 at 12:29 PM, Ivan Kartyshov wrote: Ants Aasma писал 2017-09-26 13:00: Exposing this interface as WAITLSN will encode that visibility order matches LSN order. This removes any chance of fixing for example visibility order of async/vs

Re: [HACKERS] less expensive pg_buffercache on big shmem

2016-09-28 Thread Ivan Kartyshov
obvious to me that there's any point in taking the lock on the buffer mapping partition; I'm thinking that doesn't really do anything unless we lock them all, and we all seem to agree that's going too far. Replace consistent method with semiconsistent (that lock buffer he

Re: [HACKERS] make async slave to wait for lsn to be replayed

2017-03-07 Thread Ivan Kartyshov
ce: select pg_waitlsn will release on PostmasterDeath or Interruption events if they come earlier then target LSN or timeout. -- Ivan Kartyshov Postgres Professional: http://www.postgrespro.com The Russian Postgres Company diff --git a/contrib/pg_waitlsn/Makefile b/contrib/pg_waitlsn/Makefile n

Re: [HACKERS] make async slave to wait for lsn to be replayed

2017-03-09 Thread Ivan Kartyshov
v_v3 (core feature) I will leave the choice of implementation (core/contrib) to the discretion of the community. Will be glad to hear your suggestion about syntax, code and patch. -- Ivan Kartyshov Postgres Professional: http://www.postgrespro.com The Russian Postgres Company diff --g

[HACKERS] Union All View execution

2015-10-14 Thread Ivan Novick
is there a pointer to the latest summary of goals and design for parallel query work? Thanks! Cheers, Ivan

[HACKERS] Millisecond-precision connect_timeout for libpq

2013-07-05 Thread ivan babrou
Hi, guys! I made a quick patch to support floating number in connect_timeout param for libpq. This will treat floating number as seconds so this is backwards-compatible. I don't usually write in C, so there may be mistakes. Could you review it and give me some feedback? -- Regards, Ian Babrou http

Re: [HACKERS] Millisecond-precision connect_timeout for libpq

2013-07-05 Thread ivan babrou
timeouts matter. On 5 July 2013 22:20, Tom Lane wrote: > ivan babrou writes: >> Hi, guys! I made a quick patch to support floating number in >> connect_timeout param for libpq. > > What exactly is the use case for that? It seems like extra complication > for something with

Re: [HACKERS] Millisecond-precision connect_timeout for libpq

2013-07-05 Thread ivan babrou
On 5 July 2013 23:26, Tom Lane wrote: > ivan babrou writes: >> If you can figure out that postgresql is overloaded then you may >> decide what to do faster. In our app we have very strict limit for >> connect time to mysql, redis and other services, but postgresql has &g

Re: [HACKERS] Millisecond-precision connect_timeout for libpq

2013-07-08 Thread ivan babrou
On 5 July 2013 23:47, ivan babrou wrote: > On 5 July 2013 23:26, Tom Lane wrote: >> ivan babrou writes: >>> If you can figure out that postgresql is overloaded then you may >>> decide what to do faster. In our app we have very strict limit for >>> connect tim

Re: [HACKERS] Millisecond-precision connect_timeout for libpq

2013-07-08 Thread ivan babrou
On 8 July 2013 20:40, David E. Wheeler wrote: > On Jul 8, 2013, at 7:44 AM, ivan babrou wrote: > >>> Can you tell me why having ability to specify more accurate connect >>> timeout is a bad idea? >> >> Nobody answered my question yet. > > From an earlier

Re: [HACKERS] Millisecond-precision connect_timeout for libpq

2013-07-09 Thread ivan babrou
On 9 July 2013 11:05, Markus Wanner wrote: > On 07/08/2013 08:31 PM, ivan babrou wrote: >> Seriously, I don't get why running 150 poolers is easier. > > Did you consider running pgbouncer on the database servers? > > Regards > > Markus Wanner Database server lost

Re: [HACKERS] Millisecond-precision connect_timeout for libpq

2013-07-09 Thread ivan babrou
On 9 July 2013 12:20, Markus Wanner wrote: > On 07/09/2013 09:15 AM, ivan babrou wrote: >> Database server lost network — boom, 2 seconds delay. What's the point then? > > Oh, I see. Good point. It could still improve connection time during > normal operation, though.

Re: [HACKERS] Millisecond-precision connect_timeout for libpq

2013-07-09 Thread ivan babrou
On 9 July 2013 17:59, Markus Wanner wrote: > Ian, > > On 07/05/2013 07:28 PM, ivan babrou wrote: >> - /* >> - * Rounding could cause connection to fail; need at >> least 2 secs >> - */ > > Y

Re: [HACKERS] Millisecond-precision connect_timeout for libpq

2013-07-10 Thread ivan babrou
On 9 July 2013 19:17, Dmitriy Igrishin wrote: > > > > 2013/7/9 Merlin Moncure >> >> On Fri, Jul 5, 2013 at 12:28 PM, ivan babrou wrote: >> > Hi, guys! I made a quick patch to support floating number in >> > connect_timeout param for libpq. This will tre

Re: [HACKERS] Millisecond-precision connect_timeout for libpq

2013-07-10 Thread ivan babrou
On 9 July 2013 18:43, Andres Freund wrote: > On 2013-07-05 21:28:59 +0400, ivan babrou wrote: >> Hi, guys! I made a quick patch to support floating number in >> connect_timeout param for libpq. This will treat floating number as >> seconds so this is backwards-compatible. I d

Re: [HACKERS] Millisecond-precision connect_timeout for libpq

2013-07-15 Thread ivan babrou
Is there any hope to see it in libpq? If so, can anyone review latest version of my patch? On 10 July 2013 11:49, ivan babrou wrote: > On 9 July 2013 18:43, Andres Freund wrote: >> On 2013-07-05 21:28:59 +0400, ivan babrou wrote: >>> Hi, guys! I made a quick patch to support

  1   2   >