pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Auto commit Off how will it effect us ?
6+ messages / 4 participants
[nested] [flat]

* Auto commit Off how will it effect us ?
@ 2003-12-03 16:33  SaiHertz And Control Systems <sank89@sancharnet.in>
  0 siblings, 1 reply; 6+ messages in thread

From: SaiHertz And Control Systems @ 2003-12-03 16:33 UTC (permalink / raw)
  To: pgsql-novice@postgresql.org; pgsql-php

Dear all ,

Permit me to gain some of your most valuable knowledge ...........

Our intrAnet server has the following spec
1. RH 9.0
2. Postgresql 7.3.4
3. PHP 4.3.3
4. GCC  3.2.2

Till date my front end language (PHP) use to simply pass the data to  
postgresql in case of insert and
update we were not using
1  BEGIN COMMIT block in PHP till date thanks to auto-commit-ON in postgreql
2. ROLLBACK script in PHP script


And now when our company has decided to switch over to  postgresql 7.4  
we have some doubt
1. Do we have to include BEGIN and COMMIT block around the insert 
process . (Because Postgresql 7.4 has auto-commit-OFF) in our PHP scripts
2. Not only this do we also have to port the pgSQL functions which use 
to do inserts into a third table such that
    data gets committed on function execution


Please provide us any kinda information so that we can happily switch to 
postgressql 7.4



Regards,
V Kashyap








^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: Auto commit Off how will it effect us ?
@ 2003-12-06 01:07  CoL <col@mportal.hu>
  parent: SaiHertz And Control Systems <sank89@sancharnet.in>
  0 siblings, 0 replies; 6+ messages in thread

From: CoL @ 2003-12-06 01:07 UTC (permalink / raw)
  To: pgsql-php

hi,

SaiHertz And Control Systems wrote, On 12/3/2003 5:33 PM:
> Dear all ,
> 
> Permit me to gain some of your most valuable knowledge ...........
> 
> Our intrAnet server has the following spec
> 1. RH 9.0
> 2. Postgresql 7.3.4
> 3. PHP 4.3.3
> 4. GCC  3.2.2
> 
> Till date my front end language (PHP) use to simply pass the data to  
> postgresql in case of insert and
> update we were not using
> 1  BEGIN COMMIT block in PHP till date thanks to auto-commit-ON in postgreql
> 2. ROLLBACK script in PHP script
> 
> 
> And now when our company has decided to switch over to  postgresql 7.4  
> we have some doubt
> 1. Do we have to include BEGIN and COMMIT block around the insert 
> process . (Because Postgresql 7.4 has auto-commit-OFF) in our PHP scripts

in pg7.4
AUTOCOMMIT = 'on'

try: SET AUTOCOMMIT = off; you will get:
ERROR:  SET AUTOCOMMIT TO OFF is no longer supported

C.



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Auto commit Off how will it effect us ?
@ 2003-12-07 08:54  Sai Hertz And Control Systems <sank89@sancharnet.in>
  0 siblings, 1 reply; 6+ messages in thread

From: Sai Hertz And Control Systems @ 2003-12-07 08:54 UTC (permalink / raw)
  To: pgsql-admin@postgresql.org

Dear all ,

Permit me to gain some of your most valuable knowledge ...........

Our intrAnet server has the following spec
1. RH 9.0
2. Postgresql 7.3.4
3. PHP 4.3.3
4. GCC  3.2.2

Till date my front end language (PHP) use to simply pass the data to  
postgresql in case of insert and
update we were not using
1  BEGIN COMMIT block in PHP till date thanks to auto-commit-ON in postgreql
2. ROLLBACK script in PHP script


And now when our company has decided to switch over to  postgresql 7.4  
we have some doubt
1. Do we have to include BEGIN and COMMIT block around the insert 
process . (Because Postgresql 7.4 has auto-commit-OFF) in our PHP scripts
2. Not only this do we also have to port the pgSQL functions which use 
to do inserts into a third table such that
  data gets committed on function execution


Please provide us any kinda information so that we can happily switch to 
postgressql 7.4



Regards,
V Kashyap













^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: Auto commit Off how will it effect us ?
@ 2003-12-08 21:15  Robert Treat <xzilla@users.sourceforge.net>
  parent: Sai Hertz And Control Systems <sank89@sancharnet.in>
  0 siblings, 1 reply; 6+ messages in thread

From: Robert Treat @ 2003-12-08 21:15 UTC (permalink / raw)
  To: Sai Hertz And Control Systems <sank89@sancharnet.in>; +Cc: pgsql-admin@postgresql.org

I think you have misunderstood... autocommit works as it always has in
7.4, the difference is that the logic to turn it off is now left to the
client side instead of trying to manage it within the server.

ie.

phppgadmin=# select version();
                           version                           
-------------------------------------------------------------
 PostgreSQL 7.4 on i586-pc-linux-gnu, compiled by GCC 2.95.3
(1 row)

phppgadmin=# set autocommit = off;
ERROR:  SET AUTOCOMMIT TO OFF is no longer supported
phppgadmin=# 


Of course PostgreSQL is open source, so I always recommend for folks to
do a test installation and test there apps out just to be on the safe
side.

Robert Treat 

On Sun, 2003-12-07 at 03:54, Sai Hertz And Control Systems wrote:
> Dear all ,
> 
> Permit me to gain some of your most valuable knowledge ...........
> 
> Our intrAnet server has the following spec
> 1. RH 9.0
> 2. Postgresql 7.3.4
> 3. PHP 4.3.3
> 4. GCC  3.2.2
> 
> Till date my front end language (PHP) use to simply pass the data to  
> postgresql in case of insert and
> update we were not using
> 1  BEGIN COMMIT block in PHP till date thanks to auto-commit-ON in postgreql
> 2. ROLLBACK script in PHP script
> 
> 
> And now when our company has decided to switch over to  postgresql 7.4  
> we have some doubt
> 1. Do we have to include BEGIN and COMMIT block around the insert 
> process . (Because Postgresql 7.4 has auto-commit-OFF) in our PHP scripts
> 2. Not only this do we also have to port the pgSQL functions which use 
> to do inserts into a third table such that
>   data gets committed on function execution
> 
> 
> Please provide us any kinda information so that we can happily switch to 
> postgressql 7.4
> 
> 
> 
> Regards,
> V Kashyap
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 7: don't forget to increase your free space map settings

-- 
Build A Brighter Lamp :: Linux Apache {middleware} PostgreSQL




^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: Auto commit Off how will it effect us ?
@ 2003-12-09 08:43  Sai Hertz And Control Systems <sank89@sancharnet.in>
  parent: Robert Treat <xzilla@users.sourceforge.net>
  0 siblings, 1 reply; 6+ messages in thread

From: Sai Hertz And Control Systems @ 2003-12-09 08:43 UTC (permalink / raw)
  To: Robert Treat <xzilla@users.sourceforge.net>; +Cc: pgsql-admin@postgresql.org; pgsql-php

Dear Robert Treat ,

First of all accept  gratitude for answering the question 

>phppgadmin=# set autocommit = off;
>ERROR:  SET AUTOCOMMIT TO OFF is no longer supported
>phppgadmin=# 
>  
>
Now does this mean that their must exist some PHP.INI  file option that 
will make client side auto commit  on
But as such till now PHP version 4.3.4 their exist no such option  till now
and defiantly  we are testing our application for PostgreSQL 7.4  .
We would never like to miss the options provided by 7.4


Regards,
V Kashyap





^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: Auto commit Off how will it effect us ?
@ 2003-12-10 02:16  Robert Treat <xzilla@users.sourceforge.net>
  parent: Sai Hertz And Control Systems <sank89@sancharnet.in>
  0 siblings, 0 replies; 6+ messages in thread

From: Robert Treat @ 2003-12-10 02:16 UTC (permalink / raw)
  To: Sai Hertz And Control Systems <sank89@sancharnet.in>; +Cc: pgsql-admin@postgresql.org; pgsql-php

On Tuesday 09 December 2003 03:43, Sai Hertz And Control Systems wrote:
> Dear Robert Treat ,
>
> First of all accept  gratitude for answering the question
>
> >phppgadmin=# set autocommit = off;
> >ERROR:  SET AUTOCOMMIT TO OFF is no longer supported
> >phppgadmin=#
>
> Now does this mean that their must exist some PHP.INI  file option that
> will make client side auto commit  on
> But as such till now PHP version 4.3.4 their exist no such option  till now
> and defiantly  we are testing our application for PostgreSQL 7.4  .
> We would never like to miss the options provided by 7.4
>

Autocommit On is the default, you don't need any special options for it.  If 
you wanted autocommit off you would need a special option for that (which php 
doesnt seem to have).

Robert Treat
-- 
Build A Brighter Lamp :: Linux Apache {middleware} PostgreSQL



^ permalink  raw  reply  [nested|flat] 6+ messages in thread


end of thread, other threads:[~2003-12-10 02:16 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-12-03 16:33 Auto commit Off how will it effect us ? SaiHertz And Control Systems <sank89@sancharnet.in>
2003-12-06 01:07 ` CoL <col@mportal.hu>
2003-12-07 08:54 Auto commit Off how will it effect us ? Sai Hertz And Control Systems <sank89@sancharnet.in>
2003-12-08 21:15 ` Robert Treat <xzilla@users.sourceforge.net>
2003-12-09 08:43   ` Sai Hertz And Control Systems <sank89@sancharnet.in>
2003-12-10 02:16     ` Robert Treat <xzilla@users.sourceforge.net>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox