Re: [HACKERS] patch: shared session variables

2012-09-27 Thread Pavel Stehule
Hello 2012/9/24 Heikki Linnakangas : > Having read through this thread, the consensus seems to be that we don't > want this patch as it is (and I agree with that). > > As I understand it, you are trying to solve two problems: > > 1. Passing parameters to a DO statement. You could quote the paramet

Re: [HACKERS] patch: shared session variables

2012-09-23 Thread Heikki Linnakangas
Having read through this thread, the consensus seems to be that we don't want this patch as it is (and I agree with that). As I understand it, you are trying to solve two problems: 1. Passing parameters to a DO statement. You could quote the parameters and inline them in the block itself in th

Re: [HACKERS] patch: shared session variables

2012-08-31 Thread Pavel Stehule
2012/8/31 Dimitri Fontaine : > Pavel Stehule writes: >>> Pavel, you didn't say what you think about the WITH FUNCTION proposal? >> >> I don't like it - this proposal is too "lispish" - it is not SQL > > We're not doing lambda here, only extending a facility that we rely on > today. The function wo

Re: [HACKERS] patch: shared session variables

2012-08-31 Thread Dimitri Fontaine
Pavel Stehule writes: >> Pavel, you didn't say what you think about the WITH FUNCTION proposal? > > I don't like it - this proposal is too "lispish" - it is not SQL We're not doing lambda here, only extending a facility that we rely on today. The function would be named, for one. I don't know wha

Re: [HACKERS] patch: shared session variables

2012-08-31 Thread Pavel Stehule
2012/8/31 Dimitri Fontaine : > Pavel Stehule writes: >> a motivation for this patch was discussion about parametrised DO >> statement - and simple possibility of access to host variables (psql) >> variables from server - PL scripts. > > Pavel, you didn't say what you think about the WITH FUNCTION

Re: [HACKERS] patch: shared session variables

2012-08-31 Thread Dimitri Fontaine
Pavel Stehule writes: > a motivation for this patch was discussion about parametrised DO > statement - and simple possibility of access to host variables (psql) > variables from server - PL scripts. Pavel, you didn't say what you think about the WITH FUNCTION proposal? And you didn't say how do

Re: [HACKERS] patch: shared session variables

2012-08-30 Thread Tom Lane
Robert Haas writes: > On Thu, Aug 30, 2012 at 2:18 PM, Pavel Stehule > wrote: >> 2012/8/30 Robert Haas : >>> On Tue, Aug 14, 2012 at 3:46 AM, Pavel Stehule >>> wrote: patch that implements "shared" client/server session variables >>> I don't really see what we can do with this that we ca

Re: [HACKERS] patch: shared session variables

2012-08-30 Thread Robert Haas
On Thu, Aug 30, 2012 at 2:18 PM, Pavel Stehule wrote: > 2012/8/30 Robert Haas : >> On Tue, Aug 14, 2012 at 3:46 AM, Pavel Stehule >> wrote: >>> patch that implements "shared" client/server session variables >> >> I don't really see what we can do with this that we can't do without this. > > a mo

Re: [HACKERS] patch: shared session variables

2012-08-30 Thread Pavel Stehule
2012/8/30 Robert Haas : > On Tue, Aug 14, 2012 at 3:46 AM, Pavel Stehule > wrote: >> patch that implements "shared" client/server session variables > > I don't really see what we can do with this that we can't do without this. a motivation for this patch was discussion about parametrised DO stat

Re: [HACKERS] patch: shared session variables

2012-08-30 Thread Robert Haas
On Tue, Aug 14, 2012 at 3:46 AM, Pavel Stehule wrote: > patch that implements "shared" client/server session variables I don't really see what we can do with this that we can't do without this. -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company -- Sent

[HACKERS] patch: shared session variables

2012-08-14 Thread Pavel Stehule
Hello patch that implements "shared" client/server session variables Regards Pavel Stehule shared_variables-01.diff Description: Binary data -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-ha