Hi,
thanks for the new great version!
Only one small problem, how can I disable autocommit in Postgres 7.4 in
libpgtcl and psql?
I found something about .psqlrc but how is the syntax and how can I set it
for libpgtcl?
BTW, SET AUTOCOMMIT TO ON still gives no error, only SET AUTOCOMMIT TO OFF
says ERROR: SET AUTOCOMMIT TO OFF is no longer supported.
Thanks and best regards,
Christian
---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings 4 2657
Christian Traber <ch*******@trab er-net.de> writes: Only one small problem, how can I disable autocommit in Postgres 7.4 in libpgtcl and psql? I found something about .psqlrc but how is the syntax and how can I set it for libpgtcl?
In psql, "\set AUTOCOMMIT off". In libpgtcl, I think you're out of luck
:-( ... AFAIR no one got around to writing any autocommit control logic
for libpgtcl. You are of course welcome to write some and send it in if
you need it ...
regards, tom lane
---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives? http://archives.postgresql.org
Tom Lane wrote: In psql, "\set AUTOCOMMIT off". In libpgtcl, I think you're out of luck ... AFAIR no one got around to writing any autocommit control logic for libpgtcl. You are of course welcome to write some and send it in if you need it ...
Ok, I'll try to make it. Do you know any reason why libpgtcl is not
tclstub enabled?
Maybe I 'll try to build it with stubs...
Regards,
Christian
---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives? http://archives.postgresql.org
Christian Traber <ch*******@trab er-net.de> writes: Ok, I'll try to make it. Do you know any reason why libpgtcl is not tclstub enabled?
Nobody's done the work (I don't think tclstub even existed the last time
anyone was doing serious work on libpgtcl). If you think it's worth
having, and it can be done without breaking backwards compatibility with
older Tcl releases, go for it ...
regards, tom lane
---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to ma*******@postg resql.org so that your
message can get through to the mailing list cleanly
Tom Lane wrote: In psql, "\set AUTOCOMMIT off". In libpgtcl, I think you're out of luck :-( ... AFAIR no one got around to writing any autocommit control logic for libpgtcl. You are of course welcome to write some and send it in if you need it ...
Ok, I'll try to make it. Do you know any reason why libpgtcl is not
tclstub enabled?
Maybe I 'll try to build it with stubs...
Regards,
Christian
---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives? http://archives.postgresql.org This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Marcus |
last post by:
Hello,
I have 2 questions regarding InnoDB tables:
1. In the MySQL manual, it states that
"MySQL begins each client connection with autocommit mode enabled by
default. When autocommit is enabled, MySQL does a commit after each SQL
statement if that statement did not return an error."
Does using BEGIN override this behavior? In other words, with
|
by: jy2003 |
last post by:
Below is what I got by using MySQL's --log startup option. The original
Java(with JDBC driver) program that creates the queries at runtime was coded
by other people, and unfortunately, they are not available to answer any
question.
My question is: Do we need so many "SET autocommit=1" at all? Bu default,
MySQL always starts a new connection with autocommit
enabled.(?dev.mysql.com/doc/mysql/en/InnoDB_and_.., do we need to do "SET...
|
by: Scott Mills |
last post by:
Hi all,
I've got MySQL 4.1.3 installed on RH 7.3... everything's fine so far
except for getting the init_connect string to work.
I followed the instructions on
http://dev.mysql.com/doc/mysql/en/Server_system_variables.html
and added the below line to my '/etc/my.cnf' file under :
init_connect='SET AUTOCOMMIT=0'
|
by: Lynn.Tilby |
last post by:
Hi,
Please see the history below...
Does AUTOCOMMIT as used here functionally replace VACUUM ANALYZE?
If I turn on AUTOCOMMIT is every transaction commited as it is
executed? If this is the case the query will take about twice as
long... I have actually tested this scenario.
|
by: Carmen Gloria Sepulveda Dedes |
last post by:
Hola.
He instalado postgres 7.4, y vi que ya no es posible hacer un "alter
database ... set autocommit = off"
Leyendo la documentacion de 7.4, encontre lo siguiente:
Note: The autocommit-on mode is PostgreSQL's traditional behavior, but
autocommit-off is closer to the SQL spec. If you prefer autocommit-off,
you may wish to set it in your .psqlrc file.
| |
by: Carmen Gloria Sepulveda Dedes |
last post by:
Hello.
I have installed postgres 7.4, and I see that it's not possible to do
"alter database ... set autocommit = off"
In the documentation, I found:
Note: The autocommit-on mode is PostgreSQL's traditional behavior, but
autocommit-off is closer to the SQL spec. If you prefer autocommit-off,
you may wish to set it in your .psqlrc file.
|
by: Matt Van Mater |
last post by:
I'm looking to get a little more performance out of my database, and saw in
the docs a section about disabling autocommit by using the BEGIN and COMMIT
keywords.
My problem is this: I enforce unique rows for all data, and occasionally
there is an error where I try to insert a duplicate entry. I expect to see
these duplicate entries and depend on the DB to enforce the row uniqueness.
When I just run the insert statements without the...
|
by: John Sidney-Woollett |
last post by:
With the advent of postgres v8, would it be possible to change the
default behaviour of psql from AUTOCOMMIT=ON to AUTOCOMMIT=OFF ?
Although this might break backward compatibility, it might be acceptable
on the basis that v8 is such a major release.
Also adding a new command line parameter to control the AUTOCOMMIT
setting for those users that will experience broken scripts executed
(especially using the -c command) might help ease...
|
by: Jia Lu |
last post by:
Hi all.
I use cx_Oracle to connect to an Oracle9i DB. And I want to turn on
AUTOCOMMIT function.
I see that cur.execute("SET AUTOCOMMIT ON") cannot work. Is there any
method to do that ??
Thanks a lot!
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |