Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

transaction logging on update

 
   Database Help (Home) -> Ingres RSS
Next:  We_are_looking_for_boys_and_girls_to_have_fun,_or..  
Author Message
paul.caffrey

External


Since: Dec 22, 2008
Posts: 1



(Msg. 1) Posted: Mon Dec 22, 2008 3:08 am
Post subject: transaction logging on update
Archived from groups: comp>databases>ingres (more info?)

Hi

I know I can do a "copy.in" to a structured table which has no
secondary indexes and it is not logged.

I tried the same approach for an update but cannot seem to get it to
work.

I have
set autocommit on;
set nojournaling;
update ...

but even without secondary indexes it is being logged.

Is it possible to do updates without logging?

Regards

 >> Stay informed about: transaction logging on update 
Back to top
Login to vote
John Dennis

External


Since: Jan 14, 2008
Posts: 5



(Msg. 2) Posted: Mon Dec 22, 2008 6:32 am
Post subject: Re: [Info-Ingres] transaction logging on update [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Paul, Marty,

The journaling state will make no difference to an update statement, as
all the updated rows need to be logged so they can be rolled back if the
transaction is aborted.

John

-----Original Message-----
From: info-ingres-bounces.DeleteThis@kettleriverconsulting.com
[mailto:info-ingres-bounces@kettleriverconsulting.com] On Behalf Of
Martin Bowes
Sent: Monday, 22 December 2008 10:24 PM
To: Ingres and related product discussion forum
Cc:
Subject: Re: [Info-Ingres] transaction logging on update

Hi Paul,

Presumably you want to do this because the update logging is blowing
your log file apart.

You have a few options:
1. Set nojournaling on tablename; update tablename...; set journaling on
tablename.
This should improve the logging situation, but at the cost of
removing journaling from the table until the next checkpoint runs. You
should follow the update with a checkpoint.

2. set session with on_logfull=commit;
Everything gets logged, but when the transaction log file fills
up it autocommits what it has and then continues with the rest of the
update statement.

I find this to be the best option.

3. set nologging.
This is extremely dangerous. One error of any type and you are
up for a database recovery. If you absolutely must use it, take a backup
of the database first and then run the update using an exclusive
database lock. Once completed, take another backup of the database.

Martin Bowes

-----Original Message-----
From: info-ingres-bounces.DeleteThis@kettleriverconsulting.com
[mailto:info-ingres-bounces@kettleriverconsulting.com] On Behalf Of

Sent: 22 December 2008 11:08
To: info-ingres.DeleteThis@kettleriverconsulting.com
Subject: [Info-Ingres] transaction logging on update

Hi

I know I can do a "copy.in" to a structured table which has no secondary
indexes and it is not logged.

I tried the same approach for an update but cannot seem to get it to
work.

I have
set autocommit on;
set nojournaling;
update ...

but even without secondary indexes it is being logged.

Is it possible to do updates without logging?

Regards
_______________________________________________
Info-Ingres mailing list
Info-Ingres.DeleteThis@kettleriverconsulting.com
http://www.kettleriverconsulting.com/mailman/listinfo/info-ingres

_______________________________________________
Info-Ingres mailing list
Info-Ingres.DeleteThis@kettleriverconsulting.com
http://www.kettleriverconsulting.com/mailman/listinfo/info-ingres

 >> Stay informed about: transaction logging on update 
Back to top
Login to vote
Martin Bowes

External


Since: Feb 05, 2008
Posts: 17



(Msg. 3) Posted: Mon Dec 22, 2008 7:25 am
Post subject: Re: [Info-Ingres] transaction logging on update [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi Paul,

Presumably you want to do this because the update logging is blowing
your log file apart.

You have a few options:
1. Set nojournaling on tablename; update tablename...; set journaling on
tablename.
This should improve the logging situation, but at the cost of
removing journaling from the table until the next checkpoint runs. You
should follow the update with a checkpoint.

2. set session with on_logfull=commit;
Everything gets logged, but when the transaction log file fills
up it autocommits what it has and then continues with the rest of the
update statement.

I find this to be the best option.

3. set nologging.
This is extremely dangerous. One error of any type and you are
up for a database recovery. If you absolutely must use it, take a backup
of the database first and then run the update using an exclusive
database lock. Once completed, take another backup of the database.

Martin Bowes

-----Original Message-----
From: info-ingres-bounces DeleteThis @kettleriverconsulting.com
[mailto:info-ingres-bounces@kettleriverconsulting.com] On Behalf Of

Sent: 22 December 2008 11:08
To: info-ingres DeleteThis @kettleriverconsulting.com
Subject: [Info-Ingres] transaction logging on update

Hi

I know I can do a "copy.in" to a structured table which has no
secondary indexes and it is not logged.

I tried the same approach for an update but cannot seem to get it to
work.

I have
set autocommit on;
set nojournaling;
update ...

but even without secondary indexes it is being logged.

Is it possible to do updates without logging?

Regards
_______________________________________________
Info-Ingres mailing list
Info-Ingres DeleteThis @kettleriverconsulting.com
http://www.kettleriverconsulting.com/mailman/listinfo/info-ingres
 >> Stay informed about: transaction logging on update 
Back to top
Login to vote
Martin Bowes

External


Since: Feb 05, 2008
Posts: 17



(Msg. 4) Posted: Mon Dec 22, 2008 7:25 am
Post subject: Re: [Info-Ingres] transaction logging on update [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Quite correct. The difference between journaling and logging always
trips me up.

Marty

-----Original Message-----
From: info-ingres-bounces.RemoveThis@kettleriverconsulting.com
[mailto:info-ingres-bounces@kettleriverconsulting.com] On Behalf Of John
Dennis
Sent: 22 December 2008 11:32
To: Ingres and related product discussion forum
Subject: Re: [Info-Ingres] transaction logging on update

Paul, Marty,

The journaling state will make no difference to an update statement, as
all the updated rows need to be logged so they can be rolled back if the
transaction is aborted.

John

-----Original Message-----
From: info-ingres-bounces.RemoveThis@kettleriverconsulting.com
[mailto:info-ingres-bounces@kettleriverconsulting.com] On Behalf Of
Martin Bowes
Sent: Monday, 22 December 2008 10:24 PM
To: Ingres and related product discussion forum
Cc:
Subject: Re: [Info-Ingres] transaction logging on update

Hi Paul,

Presumably you want to do this because the update logging is blowing
your log file apart.

You have a few options:
1. Set nojournaling on tablename; update tablename...; set journaling on
tablename.
This should improve the logging situation, but at the cost of
removing journaling from the table until the next checkpoint runs. You
should follow the update with a checkpoint.

2. set session with on_logfull=commit;
Everything gets logged, but when the transaction log file fills
up it autocommits what it has and then continues with the rest of the
update statement.

I find this to be the best option.

3. set nologging.
This is extremely dangerous. One error of any type and you are
up for a database recovery. If you absolutely must use it, take a backup
of the database first and then run the update using an exclusive
database lock. Once completed, take another backup of the database.

Martin Bowes

-----Original Message-----
From: info-ingres-bounces.RemoveThis@kettleriverconsulting.com
[mailto:info-ingres-bounces@kettleriverconsulting.com] On Behalf Of

Sent: 22 December 2008 11:08
To: info-ingres.RemoveThis@kettleriverconsulting.com
Subject: [Info-Ingres] transaction logging on update

Hi

I know I can do a "copy.in" to a structured table which has no secondary
indexes and it is not logged.

I tried the same approach for an update but cannot seem to get it to
work.

I have
set autocommit on;
set nojournaling;
update ...

but even without secondary indexes it is being logged.

Is it possible to do updates without logging?

Regards
_______________________________________________
Info-Ingres mailing list
Info-Ingres.RemoveThis@kettleriverconsulting.com
http://www.kettleriverconsulting.com/mailman/listinfo/info-ingres

_______________________________________________
Info-Ingres mailing list
Info-Ingres.RemoveThis@kettleriverconsulting.com
http://www.kettleriverconsulting.com/mailman/listinfo/info-ingres

_______________________________________________
Info-Ingres mailing list
Info-Ingres.RemoveThis@kettleriverconsulting.com
http://www.kettleriverconsulting.com/mailman/listinfo/info-ingres
 >> Stay informed about: transaction logging on update 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Is there a way to allow ambiguous replace on update? - Ingres 2.6 HP-UX 11.11 Is there a way to temporarily turn on ambiguous replace on update with the use of one of the set trace points? Ambiguous replace used to work in earlier versions of ingres, and I understand it's generally not a good thing and....

Update regarding open source bootcamp events in May/June - Hello Everyone, Open Source Bootcamp (osbootcamp) is a unique series of events offering skills and business value discussions regarding use of open source software. For students and developers, expect introductory skills training and advice from..

Anyone using Plone with Ingres? - I'm currently playing about with Plone and Ingres (i.e. I have created a ZODB that is stored in an Ingres database). I am curious to know who else is. Roy

Windows Server 2003 Ingres Net Problems - Gday, I am running Ingres Net (version 2.6 SP2) on a Windows Server 2003 box with ODBC Driver version 3.50.00.32 and am having some problems with stability. Essentially the problem is that I get a random Ingres ODBC error ERROR [HY000] [CA][Ingres ODBC...

ODBC error message: Unable to authenticate client's user ID - Hi list, we have two machines: 1. Suse Linux with Ingres 2.6 SP2 DBMS 2. Win 2000 Server with IngresNet (client-only) 2.5 The Win 2000 box starts a Borland-Delphi-app that connects via ODBC, unfortunately this fails. Errlog.log on the Windows machine....
   Database Help (Home) -> Ingres All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]