Re: [HACKERS] Another review of URI for libpq, v7 submission

2012-03-15 Thread Alex
Daniel Farina writes: > >> Finally, attached is v8.  Hopefully I didn't mess things up too much. > > I'll give it another look-over. Do you have these in git somewhere? It > will help me save time on some of the incremental changes. Yes, I've just pushed my dev branch to this fork of mine: https

Re: [HACKERS] Another review of URI for libpq, v7 submission

2012-03-20 Thread Alex
Marko Kreen writes: > On Thu, Mar 15, 2012 at 11:29:31PM +0200, Alex wrote: >> https://github.com/a1exsh/postgres/commits/uri > > The point of the patch is to have one string with all connection options, > in standard format, yes? So why does not this work: > > db

Re: [HACKERS] Another review of URI for libpq, v7 submission

2012-03-22 Thread Alex
Alex writes: > Marko Kreen writes: > >> On Thu, Mar 15, 2012 at 11:29:31PM +0200, Alex wrote: >>> https://github.com/a1exsh/postgres/commits/uri >> >> The point of the patch is to have one string with all connection options, >> in standard format, yes?

Re: [HACKERS] Another review of URI for libpq, v7 submission

2012-03-27 Thread Alex
Peter Eisentraut writes: > On tor, 2012-03-22 at 23:42 +0200, Alex wrote: >> Okay, at last here's v9, rebased against current master branch. > > Attached is a patch on top of your v9 with two small fixes: > > - Don't provide a check target in libpq/Makefile if it

Re: [HACKERS] Another review of URI for libpq, v7 submission

2012-03-27 Thread Alex
Alex writes: > Peter Eisentraut writes: >> >> Attached is a patch on top of your v9 with two small fixes: >> >> - Don't provide a check target in libpq/Makefile if it's not >> implemented. >> >> - Use the configured port number for ru

[HACKERS] Display output file name in psql prompt?

2013-03-12 Thread Alex
into default prompt, unless stdout?) Something like this: \set PROMPT1 '%/:%o%R%# ' postgres:/path/to/output/file.txt=> -- Regards, Alex PS: upon reading the docs more carefully, I guess I should have used \g instead of \o, but still this might be not a bad feature to have. -- Se

Re: [HACKERS] Display output file name in psql prompt?

2013-03-13 Thread Alex
=# Not sure how \pset could fit there, it might be a bit excessive. Another idea is we could add \O and \G commands that will act like the plain \o and \g, but will set \a and \t automatically. I mean it must be quite often that you don't need all the decoration when you save query resul

Re: [HACKERS] Last gasp

2012-04-14 Thread Alex
##' suggested further in this thread should be also possible. -- Regards, Alex [1] http://www.redmine.org/ [2] http://www.redmine.org/plugins [3] https://github.com/diasjorge/redmine-cli -- 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] Last gasp

2012-04-14 Thread Alex
Greg Smith writes: > On 04/14/2012 03:02 AM, Alex wrote: >> I didn't follow this whole thread, but have we considered Redmine[1]? > > It comes up every couple of years in contexts near this one, such as > http://wiki.postgresql.org/wiki/TrackerDiscussion Oh, I see. I

Re: [HACKERS] Last gasp

2012-04-14 Thread Alex
Alex writes: > Greg Smith writes: > >> On 04/14/2012 03:02 AM, Alex wrote: >>> I didn't follow this whole thread, but have we considered Redmine[1]? >> >> It comes up every couple of years in contexts near this one, such as >> http://wiki.postgresql.

Re: [HACKERS] Last gasp

2012-04-14 Thread Alex
Jay Levitt writes: > Alex wrote: >> I didn't follow this whole thread, but have we considered Redmine[1]? > > As the resident "Ruby is shiny, let's do everything in Rails on my > MacBook" guy, I'd like to make a statement against interest: I've &

[HACKERS] Bug tracker tool we need (was: Last gasp)

2012-04-16 Thread Alex
l tool for the task? Given that every other existing tool likely have pissed off someone already, I guess our best bet is writing one from scratch. Or maybe there isn't really a need for a tracker? The core team have managed to live without one for so long after all... -- Regards, Alex [

Re: [HACKERS] Bug tracker tool we need

2012-04-16 Thread Alex
h IIRC doesn't have any kind of reasonable database backend, which > would be a strange choice for a project like ours :) And makes many > things harder... What stops us from writing a postgres backend for debbugs if it is so brilliant on handing email and stuff? -- Alex -- Sent via pgs

Re: [HACKERS] Bug tracker tool we need

2012-04-16 Thread Alex
into shape we need (and we need a few Ruby hackers, so there's always someone in the postgres community to fix it when it breaks, of course.) -- Alex -- 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] libpq URI and regression testing

2012-04-18 Thread Alex
ion attempts and only deals with testing the parser routine. Does it change that? -- Regards, Alex -- 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] libpq URI and regression testing

2012-04-18 Thread Alex
riting Perl: replaces the shell script, adds $libpq_uri_regress project to Mkvcbuild.pm. I don't have access to a win32 box unfortunately, so if anyone who does could try this out that'd be great. -- Regards, Alex diff --git a/src/interfaces/libpq/test/Makefile b/src/interfaces/libpq

Re: [HACKERS] libpq URI and regression testing

2012-04-19 Thread Alex
Peter Eisentraut writes: > On tor, 2012-04-19 at 00:13 +0300, Alex wrote: >> +#!/usr/bin/env perl > > Don't do that. Call the script using $(PERL) from the makefile. Thank you for the suggestion. Attached v2 does just this (while keeping a more commonly found shebang lin

Re: [HACKERS] libpq URL syntax vs SQLAlchemy

2012-05-10 Thread Alex
the whole "?keyword=value&..." business. I'll give this another look and will get back with a proposal to fix this in form of a patch. -- Regards, Alex -- 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] libpq URL syntax vs SQLAlchemy

2012-05-14 Thread Alex
karave...@mail.bg writes: > - Цитат от Alex Shulgin (a...@commandprompt.com), на 14.05.2012 в 18:16 > - > >> Alex writes: >> >> >> The host part in this case is empty (it is "hidden" between the "//" and >> the following &quo

Re: [HACKERS] libpq URL syntax vs SQLAlchemy

2012-05-25 Thread Alex
Alex Shulgin writes: > > Upon closer inspection of the issue I came to believe that the proper > fix is to drop support for special treatment of "host part" starting > with slash altogether. > > Attached is a patch to do that. Well, I understand I might be asking

Re: [HACKERS] libpq URL syntax vs SQLAlchemy

2012-05-28 Thread Alex
Peter Eisentraut writes: > On mån, 2012-05-14 at 18:16 +0300, Alex Shulgin wrote: >> Upon closer inspection of the issue I came to believe that the proper >> fix is to drop support for special treatment of "host part" starting >> with slash altogether. >&g

Re: [HACKERS] Inconsistency in libpq connection parameters, and extension thereof

2012-06-11 Thread Alex
iginal intent was to not error out on any extra parameters from JDBC or other existing URI implementations. The example of a possible typo in sslmode=require clearly demonstrates that this was not a well-thought decision. Anyway, I can see you've already sorted this out. -- Alex -- Sent via pgsq

Re: [HACKERS] Listen / Notify rewrite

2009-11-15 Thread Alex
happen? Currently we are forced to poll the connection, which means that we'll be checking for a NOTIFY every time we have new data. That just doesn't make sense. -- Alex -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

[HACKERS] Something wrong after file system level backup

2005-10-17 Thread alex
The situation is like that: [19:24] Who can help with file system level backup? [19:24] Press_Enter: shut down postgres, tar the data dir [19:25] Press_Enter: apparently filesystem snapshots might work as well [19:25] Press_Enter: you're supposed to use pg_dumpall [19:25] KL, my question is so

[HACKERS] DBD::PgSPI 0.02

2004-12-05 Thread alex
pens to scratch yours, more the merrier. -alex ---(end of broadcast)--- TIP 3: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PROTECTED] so that your message can get through to the mailing list cleanly

Re: [HACKERS] DBD::PgSPI 0.02

2004-12-05 Thread alex
ard compatibility (to perl 5.4 for example) or not. Or whether I even care about backward compatibility. I'll remove it in next release, I suppose. -alex ---(end of broadcast)--- TIP 4: Don't 'kill -9' the postmaster

Re: [HACKERS] DBD::PgSPI 0.02

2004-12-05 Thread alex
At least they aren't on my machine. Intrinsically, this module needs to know a little bit more about pgsql internals (such as TupleDesc definition) than just something that uses libpq... If I'm wrong, please correct me. -alex ---(end of broadcast)--- TIP 8: explain analyze is your friend

Re: [HACKERS] DBD::PgSPI 0.02

2004-12-05 Thread alex
- make install won't install by default. I'll add proper path to makefile for next release (sooner than 3 years this time ;) -alex ---(end of broadcast)--- TIP 2: you can get off all lists at once with the unregister command (send "

Re: [HACKERS] DBD::PgSPI 0.02

2004-12-06 Thread alex
> or selectX, but other than that it seems to work. I'll be grabbing the > update to test soon. 'do' seems to work for me. What happens for you? I put a version of code with a bit more fixes from comments onlist to www.pilosoft.com/PgSPI/DBD-PgSPI-0.03pre.tar.gz Please downlo

Re: [HACKERS] DBD::PgSPI 0.02

2004-12-06 Thread alex
e layer as well as in-DB. That way I only need to > write the logic once. Yep, that's kind of was the point, making postgresql itself a middleware server. Make perl stored procedures take serialized objects and return serialized objects back. -alex ---(end of broadcast)--- TIP 7: don't forget to increase your free space map settings

Re: [HACKERS] DBD::PgSPI 0.02

2004-12-06 Thread alex
distribution of postgres - we'd have to reinvent it in a clean room fashion. Actually, its both GPL and Artistic license - identical to DBD::Pg (where most of the code is taken from). I don't think this needs to be in core distribution - much like DBD::Pg doesn't need to be there ei

Re: [HACKERS] DBD::PgSPI 0.02

2004-12-06 Thread alex
r-side stored procedure out of it in a minute without any changes to the code. For quick access from trusted code, spi_exec should just do fine. -alex ---(end of broadcast)--- TIP 4: Don't 'kill -9' the postmaster

Re: [HACKERS] DBD::PgSPI 0.02

2004-12-06 Thread alex
it on server side. Besides the fact is that they have to download DBI to get *anywhere* in the first place ;0 -alex ---(end of broadcast)--- TIP 6: Have you searched our list archives? http://archives.postgresql.org

Re: [HACKERS] DBD::PgSPI 0.02

2004-12-06 Thread alex
On Mon, 6 Dec 2004, Michael Fuhr wrote: > On Mon, Dec 06, 2004 at 02:34:33PM -0500, [EMAIL PROTECTED] wrote: > > > > For quick access from trusted code, spi_exec should just do fine. > > BTW, does stock PL/Perl have functions for escaping identifiers, > strings, and binary strings? non-DBI? no.

Re: [HACKERS] DBD::PgSPI 0.02

2004-12-06 Thread alex
t to make DBI itself Safe-safe. Probably it would require starting with DBI::PurePerl (non-XS version) and adding a mode that would disable all unSafe activity (such as file operations etc etc)... -alex ---(end of broadcast)--- TIP 7: don't forget to increase your free space map settings

[HACKERS] Explicit Transaction Priority

2005-03-05 Thread Alex
there are a few questions.   1) How portable is it ? 2) What implications does it have on the postgres backend ?   This could be useful in some situations (like logtables  , where I don't need instant inserts or updates..)     Thanks     Alex

Re: [HACKERS] empty array case in plperl_ref_from_pg_array not handled correctly

2016-03-08 Thread Alex Hunsaker
On Mon, Mar 7, 2016 at 11:32 PM, Andres Freund wrote: > Hi, > > Per the new valgrind animal we get: > > > http://pgbuildfarm.org/cgi-bin/show_log.pl?nm=skink&dt=2016-03-08%2004%3A22%3A00 > 2016-03-08 05:56:05.566 UTC [56de6971.723:5] LOG: statement: select > plperl_sum_array('{}'); > ==1827== In

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

2016-03-14 Thread Alex Shulgin
, disallows leading zero, empty string, or non-digit chars. Error messages looks good. Marking this Ready for Committer. -- Alex The new status of this patch is: Ready for Committer -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http

Re: [HACKERS] Block level parallel vacuum WIP

2016-08-23 Thread Alex Ignatov
suck performance out particularly for rotating disks. Rotating disks is not a problem - you can always raid them and etc. 8k allocation per relation once per half an hour that is the problem. Seq scan is this way = random scan... Alex Ignatov Postgres Professional: http://www.postgrespro.com

[HACKERS] Parallel sec scan in plpgsql

2016-09-15 Thread Alex Ignatov
Hello! Does parallel secscan works in plpgsql? -- Alex Ignatov Postgres Professional: http://www.postgrespro.com The 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

Re: [HACKERS] Parallel sec scan in plpgsql

2016-09-16 Thread Alex Ignatov
gregate (cost=288697.59..288847.74 rows=15015 width=28) Group Key: test.a, test.b, test.c, test.d, test.e -> Seq Scan on test (cost=0.00..163696.15 rows=1115 width=20) So as we can see parallel secscan doesn't works in plpgsql and sql functions. Can somebody explains m

Re: [HACKERS] Parallel sec scan in plpgsql

2016-09-16 Thread Alex Ignatov
On 16.09.2016 16:50, Amit Kapila wrote: On Fri, Sep 16, 2016 at 6:57 PM, Alex Ignatov wrote: No it doesn't. Paralleling neither sql function nor plpgsql: Here is example : ipdr=> show max_worker_processes ; max_worker_processes -- 128 (1 row) ip

Re: [HACKERS] Parallel sec scan in plpgsql

2016-09-20 Thread Alex Ignatov
On 18.09.2016 06:54, Amit Kapila wrote: On Fri, Sep 16, 2016 at 8:48 PM, Alex Ignatov wrote: On 16.09.2016 16:50, Amit Kapila wrote: Can you try by setting force_parallel_mode = off;? I think it is sending the whole function execution to worker due to force_parallel_mode. No changes

Re: [HACKERS] GSOC'17 project introduction: Parallel COPY execution with errors handling

2017-04-10 Thread Alex K
Hi Alexander! I've missed your reply, since proposal submission deadline have passed last Monday and I didn't check hackers mailing list too frequently. (1) It seems that starting new subtransaction at step 4 is not necessary. We can just gather all error lines in one pass and at the end of input

[HACKERS] Parallel COPY FROM execution

2017-06-30 Thread Alex K
Greetings pgsql-hackers, I am a GSOC student this year, my initial proposal has been discussed in the following thread https://www.postgresql.org/message-id/flat/7179F2FD-49CE-4093-AE14-1B26C5DFB0DA%40gmail.com Patch with COPY FROM errors handling seems to be quite finished, so I have started thi

Re: [HACKERS] Parallel COPY FROM execution

2017-06-30 Thread Alex K
On Fri, Jun 30, 2017 at 3:35 PM, Pavel Stehule wrote: > > > 2017-06-30 14:23 GMT+02:00 Alex K : >> >> Thus, it results in a ~60% performance boost per each x2 multiplication of >> parallel processes, which is consistent with the initial estimation. >> > > t

Re: [HACKERS] Parallel COPY FROM execution

2017-08-11 Thread Alex K
Greetings pgsql-hackers, I have completed the general infrastructure for parallel COPY FROM execution, consisting of Main (master) process and multiple BGWorkers connected with master using a personal message query (shm_mq). Master process does: - Dynamic shared memory allocation with parallel st

Re: [HACKERS] GSOC'17 project introduction: Parallel COPY execution with errors handling

2017-06-07 Thread Alex K
Hi pgsql-hackers, Thank you again for all these replies. I have started working under this project and learnt a lot of new stuff last month, so here are some new thoughts about ERRORS handling in COPY. I decided to stick to the same thread, since it has a neutral subject. (1) One of my mentors--A

Re: [HACKERS] Why restore_command is called for existing files in pg_xlog?

2017-06-12 Thread Alex Kliukin
m it.> > When recovery_conf is there, starting of a replica could become a real > problem, especially if restore_command is slow.> > Is it possible to change this behavior somehow? First look into > pg_xlog and only if file is missing or "corrupted" call > restore_command.> > > Regards, > --- > Alexander Kukushkin Sincerely, Alex

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

2017-09-04 Thread Alex Ignatov
finitely sooner or later get this Fatal on recovery . With this patch we try to get rid of AccessEclusiveLock applied on standby while we have active statement on it. -- Alex Ignatov Postgres Professional: http://www.postgrespro.com The Russian Postgres Company -- Sent via pgsql-h

Re: [HACKERS] [BUGS] BUG #9223: plperlu result memory leak

2014-02-25 Thread Alex Hunsaker
On Tue, Feb 25, 2014 at 6:56 AM, Sergey Burladyan wrote: > It looks like I found the problem, Perl use reference count and something that > is called "Mortal" for memory management. As I understand it, mortal is free > after FREETMPS. Plperl call FREETMPS in plperl_call_perl_func() but after it,

Re: [HACKERS] [BUGS] BUG #9223: plperlu result memory leak

2014-03-05 Thread Alex Hunsaker
On Wed, Mar 5, 2014 at 12:22 PM, Alvaro Herrera wrote: > Can I bug you into verifying what supported releases need this patch, > and to which does it backpatch cleanly? And if there's any to which it > doesn't, can I further bug you into providing one that does? Sure! Not bugging at all. I'll d

Re: [HACKERS] [BUGS] BUG #9223: plperlu result memory leak

2014-03-05 Thread Alex Hunsaker
On Wed, Mar 5, 2014 at 12:55 PM, Alex Hunsaker wrote: > On Wed, Mar 5, 2014 at 12:22 PM, Alvaro Herrera > wrote: > >> Can I bug you into verifying what supported releases need this patch, >> and to which does it backpatch cleanly? And if there's any to which it >>

[HACKERS] Review of pg_archivecleanup -x option patch

2012-02-01 Thread Alex Shulgin
ad of 'extension' which sounds like some MS-DOS thingy, but after briefly grepping the docs I can see that both words are used in this context already (and the ratio is not in favor of my choice of wording.) Other than that the patch looks good. -- Alex [1] http://archives.postgresql.org

Re: [HACKERS] pl/perl and utf-8 in sql_ascii databases

2012-02-10 Thread Alex Hunsaker
On Thu, Feb 9, 2012 at 03:21, Christoph Berg wrote: > Hi, > > we have a database that is storing strings in various encodings (and > non-encodings, namely the arbitrary byte soup [ ... ] > For this reason, the database uses > sql_ascii encoding > ...snip... > In sql_ascii databases, utf_e2u does

Re: [HACKERS] [COMMITTERS] pgsql: Add new keywords SNAPSHOT and TYPES to the keyword list in gram.

2012-02-11 Thread Alex Hunsaker
On Thu, Feb 9, 2012 at 11:30, Tom Lane wrote: > Alvaro Herrera writes: >> Excerpts from Tom Lane's message of jue feb 09 12:17:59 -0300 2012: >> FWIW that script is throwing a warning here: >> Use of assignment to $[ is deprecated at >> /pgsql/source/HEAD/src/tools/check_keywords.pl line 19. >

Re: [HACKERS] WIP: URI connection string support for libpq

2012-02-24 Thread Alex Shulgin
recognized and being ignored. Not sure if plain fprintf to stderr is accepted practice for libpq, please correct if you have better idea. -- Regards, Alex *** a/src/interfaces/libpq/fe-connect.c --- b/src/interfaces/libpq/fe-connect.c *** *** 282,287 static const PQEnvironmentOptio

Re: [HACKERS] WIP: URI connection string support for libpq

2012-02-24 Thread Alex Shulgin
Florian Weimer writes: > * Alex Shulgin: > >> Yeah, this is really appealing, however how do you tell if the part >> after the last slash is a socket directory name or a dbname? E.g: >> >> psql postgres:///path/to/different/socket/dir(default dbnam

Re: [HACKERS] Reviewing patch "URI connection string support for libpq"

2012-02-24 Thread Alex Shulgin
he `postgres` prefix, as opposed to >`postgresql` for the reasons stated on an earlier thread [3]. In my >opinion the best way to move forward is to support them both. The updated v4 version of the patch does cover this: http://archives.postgresql.org/pgsql-hackers/2012-02/ms

Re: [HACKERS] WIP: URI connection string support for libpq

2012-03-07 Thread Alex Shulgin
igured that adding this right into src/interfaces/libpq is polluting the source dir, so I've used src/test instead. Attached v6 adds src/test/uri directory complete with the test script, expected output file and a Makefile which responds to installcheck. README file also included. -- Alex

Re: [HACKERS] Another review of URI for libpq, v7 submission

2012-03-15 Thread Alex Shulgin
s://@host postgres://host:/ and, taking approach to the extreme: postgres://:@: This specifies empty user, password, host and port, and looks really funny. I've added (actually revived) some checks to forbid setting empty URI parts where it doesn't make much sense. Finally, attached is v8. Hopefully I didn't mess things up too much. -- Regards, Alex binaKreQKSDSW.bin Description: libpq-uri-v8.patch -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

Trivial libpq refactoring patch (was: Re: [HACKERS] Another review of URI for libpq, v7 submission)

2012-03-21 Thread Alex Shulgin
Alex writes: > Marko Kreen writes: > >> On Thu, Mar 15, 2012 at 11:29:31PM +0200, Alex wrote: >>> https://github.com/a1exsh/postgres/commits/uri >> >> The point of the patch is to have one string with all connection options, >> in standard format, yes?

Re: [HACKERS] Another review of URI for libpq, v7 submission

2012-03-27 Thread Alex Shulgin
Heikki Linnakangas writes: > On 22.03.2012 23:42, Alex wrote: >> Okay, at last here's v9, rebased against current master branch. > > Some quick comments on this patch: Heikki, thank you for taking a look at this! > I see a compiler warning: > fe-connect.c: In funct

Re: [HACKERS] Trailing comma support in SELECT statements

2014-10-24 Thread Alex Goncharov
SQL statements for various purposes, e.g. for dependency analysis. This is a misfeature for the benefit of edit-lazy users only. -- Alex

[HACKERS] Idle transaction cancel/timeout and SSL revisited

2014-11-14 Thread Alex Shulgin
re_raw_read() can't know about IdleTransactionCancelPending and I'm not sure what would be the best way to let it see that (is it too much of a shortcut anyway?) -- Alex [1] http://www.postgresql.org/message-id/1262268211.19367.10736.camel@ebony [2] http://www.postgresql.org/message-id/538dc

Re: [HACKERS] Idle transaction cancel/timeout and SSL revisited

2014-11-14 Thread Alex Shulgin
Andres Freund writes: > > On 2014-11-15 00:11:36 +0300, Alex Shulgin wrote: >> After reading up through archives on the two $subj related TODO items >> I'm under impression that the patches[1,2] didn't make it mainly because >> of the risk of breaking SSL inte

Re: [HACKERS] Idle transaction cancel/timeout and SSL revisited

2014-11-17 Thread Alex Shulgin
Andres Freund writes: > On 2014-11-15 00:11:36 +0300, Alex Shulgin wrote: >> After reading up through archives on the two $subj related TODO items >> I'm under impression that the patches[1,2] didn't make it mainly because >> of the risk of breaking SSL interna

Re: [HACKERS] Escaping from blocked send() reprised.

2014-11-17 Thread Alex Shulgin
the client when in ProcessInterrupts() and DoingCommandRead is true. I think[1] it was expected to be delivered instantly, but actually the client (psql) only displays it after sending the next statement. While I'm reading on FE/BE protocol someone might want to share his wisdom on this subject.

Re: [HACKERS] Removing unreferenced files

2014-11-18 Thread Alex Shulgin
read from it and no attempt is made to verify this on startup. This might be not a very useful check since if the file is not missing, but corrupted the check doesn't buy you much. (I am likely kicking a dead horse here.) Thank you. -- Alex [1] http://svana.org/kleptog/pgsql/pgfsck.html --

Re: [HACKERS] [PATCH] add ssl_protocols configuration option

2014-11-19 Thread Alex Shulgin
rectly. I would try to apply patches for older branches if there is consensus that we really need this patch and we want to back-patch it. Thanks. -- Alex -- 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] [PATCH] add ssl_protocols configuration option

2014-11-20 Thread Alex Shulgin
Dag-Erling Smørgrav writes: > Alex Shulgin writes: >> * The patch works as advertised, though the only way to verify that >> connections made with the protocol disabled by the GUC are indeed >> rejected is to edit fe-secure-openssl.c to only allow specific TLS &

Re: [HACKERS] Merging recovery.conf into PostgreSQL.conf -- where did this go?

2014-11-20 Thread Alex Shulgin
mitFest entry is the latest on the subject, right? https://commitfest.postgresql.org/action/patch_view?id=1293 Should/may I move it to the next Open fest? -- Alex -- 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] [PATCH] add ssl_protocols configuration option

2014-11-21 Thread Alex Shulgin
Dag-Erling Smørgrav writes: > Alex Shulgin writes: >> I can do that too, just need a hint where to look at in libpq/psql to >> add the option. > > The place to *enforce* the option is src/interfaces/libpq/fe-secure.c > (look for SSLv23_method() and SSL_CTX_set_optio

Re: [HACKERS] Turning recovery.conf into GUCs

2014-11-21 Thread Alex Shulgin
GET_XID; >> +else if (recovery_target_name[0]) >> +recovery_target = RECOVERY_TARGET_NAME; >> +else if (recovery_target_time != 0) >> +recovery_target = RECOVERY_TARGET_TIME; >> +else >> +recovery_target = RECOVERY_TAR

Re: [HACKERS] Turning recovery.conf into GUCs

2014-11-24 Thread Alex Shulgin
Alex Shulgin writes: > >>> > * Why do you include xlog_internal.h in guc.c and not xlog.h? >> >>> we actually need both but including xlog_internal.h also includes xlog.h >>> i added xlog.h and if someone things is enough only putting >>> xlog_i

Re: [HACKERS] Turning recovery.conf into GUCs

2014-11-24 Thread Alex Shulgin
has a number of advantages as a method, > the main one being that recovery.conf is unlikely to be overwritten by > the contents of the backup. > > HOWEVER, there's a clear out for this with conf.d. If we enable conf.d > by default, then we can simply put recovery settings in conf.d, and > since that specific file (which can have whatever name the user chooses) > will not be part of backups, it would have the same advantage as > recovery.conf, without the drawbacks. > > Discuss? Well, I don't readily see how conf.d is special with regard to base backup, wouldn't you need to exclude it explicitly still? -- Alex -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

[HACKERS] Replication connection URI?

2014-11-24 Thread Alex Shulgin
eplication replication=true fallback_application_name=walreceiver", conninfo); A patch to fix this welcome? -- Alex PS: I wrote the original URI parser used in libpq. -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www

Re: [HACKERS] Replication connection URI?

2014-11-24 Thread Alex Shulgin
I just spotted this missing check. The second one is a self-contained fix, but the third one which is the actual patch depends on the second one, because it specifies the dbname keyword two times: first to parse the conninfo/URI, then to override any dbname provided by the user with "replicatio

Re: [HACKERS] Turning recovery.conf into GUCs

2014-11-24 Thread Alex Shulgin
ut if instead of removing the trigger file upon successful recovery the server would set standby_mode=off, that would also work. -- Alex -- 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] Turning recovery.conf into GUCs

2014-11-24 Thread Alex Shulgin
argue that it's not > required for PITR either, provided that we can use the auto.conf method. > > Before I go into my ideas, though, what does the current patch do > regarding non-replication PITR? It removes that $PGDATA/standby.enable trigger file it relies on to start the P

Re: [HACKERS] Turning recovery.conf into GUCs

2014-11-24 Thread Alex Shulgin
; OK, and that's required for replication too? I'm OK with that if it > gets the patch in. In the current form of the patch, yes. Thought I don't think I like it. -- Alex -- 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] Replication connection URI?

2014-11-24 Thread Alex Shulgin
Alex Shulgin writes: > Heikki Linnakangas writes: >>> >>> It appears that replication connection doesn't support URI but only the >>> traditional conninfo string. >>> >>> src/backend/replication/libpqwalreceiver/libpqwalreceiver.c:

Re: Missing OOM checks in libpq (was Re: [HACKERS] Replication connection URI?)

2014-11-25 Thread Alex Shulgin
Heikki Linnakangas writes: > On 11/24/2014 06:05 PM, Alex Shulgin wrote: >> The first patch is not on topic, I just spotted this missing check. > >> *** a/src/interfaces/libpq/fe-connect.c >> --- b/src/interfaces/libpq/fe-connect.c >> *** conninfo

Re: Missing OOM checks in libpq (was Re: [HACKERS] Replication connection URI?)

2014-11-25 Thread Alex Shulgin
t different. Great. Are you looking at the actual replication URI patch? Or should I add it to commitfest so we don't lose track of it? -- Alex -- 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] Replication connection URI?

2014-11-25 Thread Alex Shulgin
changes. It's necessary to > say "connection string or URI" everywhere, the URI format is just one > kind of a connection string. I also edited the code that builds the > keyword/value array, to make it a bit more readable. Yay, many thanks! :-) -- Alex -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

[HACKERS] Follow up to irc on CREATE INDEX vs. maintenance_work_mem on 9.3

2014-11-26 Thread Alex Shulgin
o wait before 9.4 is released? Thanks. -- Alex [1] http://dba.stackexchange.com/questions/83600/postgresql-create-index-memory-requirement -- 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] Follow up to irc on CREATE INDEX vs. maintenance_work_mem on 9.3

2014-11-26 Thread Alex Shulgin
Tom Lane writes: > Stephen Frost writes: >> * Alex Shulgin (a...@commandprompt.com) wrote: >>> Tom, >>> >>> First of all, thanks for your help on IRC last time with that CREATE >>> INDEX memory consumption problem. > >> Doubt it was Tom,

Re: [HACKERS] Follow up to irc on CREATE INDEX vs. maintenance_work_mem on 9.3

2014-11-26 Thread Alex Shulgin
Andrew Gierth writes: >>>>>> "Alex" == Alex Shulgin writes: > > > Tom Lane writes: > >> Must've been my evil twin. > > Alex> Sorry, I must be under false impression that RhodiumToad is > Alex> *your* nick on #postgresql

Re: [HACKERS] [PATCH] add ssl_protocols configuration option

2014-11-26 Thread Alex Shulgin
Alex Shulgin writes: >>> >>> I can do that too, just need a hint where to look at in libpq/psql to >>> add the option. >> >> The place to *enforce* the option is src/interfaces/libpq/fe-secure.c >> (look for SSLv23_method() and SSL_CTX_set_option

Re: [HACKERS] Remove Windows crash dump support?

2015-12-22 Thread Alex Ignatov
tead of drop support of it entirely? -- Alex Ignatov Postgres Professional: http://www.postgrespro.com The Russian Postgres Company

Re: [HACKERS] plperlu problem with utf8

2010-12-16 Thread Alex Hunsaker
On Wed, Dec 8, 2010 at 14:15, Oleg Bartunov wrote: > On Wed, 8 Dec 2010, David E. Wheeler wrote: > >> On Dec 8, 2010, at 8:13 AM, Oleg Bartunov wrote: >> >>> adding utf8::decode($_[0]) solves the problem: >> Hrm. Ideally all strings passed to PL/Perl functions would be decoded. > > yes, this is wh

Re: [HACKERS] plperlu problem with utf8

2010-12-16 Thread Alex Hunsaker
On Thu, Dec 16, 2010 at 20:24, David E. Wheeler wrote: > On Dec 16, 2010, at 6:39 PM, Alex Hunsaker wrote: > >> You might argue this is a bug with URI::Escape as I *think* all uri's >> will be utf8 encoded.  Anyway, I think postgres is doing the right >> thing here

Re: [HACKERS] plperlu problem with utf8

2010-12-17 Thread Alex Hunsaker
On Fri, Dec 17, 2010 at 08:30, David Fetter wrote: > On Thu, Dec 16, 2010 at 07:24:46PM -0800, David Wheeler wrote: >> On Dec 16, 2010, at 6:39 PM, Alex Hunsaker wrote: >> >> > Grr that should error out with "Invalid server encoding", or worst >> >

Re: [HACKERS] plperlu problem with utf8

2010-12-17 Thread Alex Hunsaker
On Fri, Dec 17, 2010 at 11:51, Alex Hunsaker wrote: > Also note this is just a simple test case, perl *could* elect to store > completely ascii strings internally as utf8.  In those cases we still Erm... not ascii I mean bytes >127 -- Sent via pgsql-hackers mailing list (pgsq

Re: [HACKERS] plperlu problem with utf8

2010-12-17 Thread Alex Hunsaker
On Fri, Dec 17, 2010 at 22:32, David Christensen wrote: > > On Dec 17, 2010, at 7:04 PM, David E. Wheeler wrote: > >> On Dec 16, 2010, at 8:39 PM, Alex Hunsaker wrote: >> >>>> No, URI::Escape is fine. The issue is that if you don't decode text to >>&

Re: [HACKERS] plperlu problem with utf8

2010-12-17 Thread Alex Hunsaker
On Fri, Dec 17, 2010 at 18:22, David E. Wheeler wrote: > On Dec 17, 2010, at 5:04 PM, David E. Wheeler wrote: > >>> see? Either uri_unescape() should be decoding that utf8() or you need >>> to do it *after* you call uri_unescape().  Hence the maybe it could be >>> considered a bug in uri_unescape(

Re: [HACKERS] plperlu problem with utf8

2010-12-17 Thread Alex Hunsaker
On Fri, Dec 17, 2010 at 18:04, David E. Wheeler wrote: > On Dec 16, 2010, at 8:39 PM, Alex Hunsaker wrote: > Yeah. So I just wrote and tested this function on 9.0 with Perl 5.12.2: > >    CREATE OR REPLACE FUNCTION perlgets( >        TEXT >    ) RETURNS TABLE(length INT, is_u

Re: [HACKERS] plperlu problem with utf8

2010-12-18 Thread Alex Hunsaker
On Sat, Dec 18, 2010 at 20:29, David E. Wheeler wrote: > On Dec 17, 2010, at 9:32 PM, David Christensen wrote: >    latin=# SELECT * FROM perlgets('“hello”'); >     length │ is_utf8 >    ┼─ >         11 │ f > > (Yes I used Latin-1 curly quotes in that last example). Erm, latin1 do

Re: [HACKERS] plperlu problem with utf8

2010-12-19 Thread Alex Hunsaker
On Sat, Dec 18, 2010 at 20:29, David E. Wheeler wrote: > ... > I would argue that it should output the same as the first example. That is, > PL/Perl should have decoded the latin-1 before passing the text to the Perl > function. Yeah, I don't think you will find anyone who disagrees :) PL/TCL

Re: [HACKERS] plperlu problem with utf8

2010-12-19 Thread Alex Hunsaker
On Sun, Dec 19, 2010 at 21:00, David Christensen wrote: > > On Dec 19, 2010, at 2:20 AM, Alex Hunsaker wrote: > >> With the attached we: >> - for function arguments, convert (using pg_do_encoding_conversion) to >> utf8 from the current database encoding. > > How

  1   2   3   4   5   6   7   >