PostgreSQL Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesPostgreSQL Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 15th, 2009, 04:23 AM
Nishkarsh Nishkarsh is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2008
Posts: 13 Nishkarsh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 17 m 10 sec
Reputation Power: 0
Question Trigger Function and backup

Hello every one,

I am new to databases. I am using Postgres 8.2 (Migrating to 8.3.7 in few days) on windows platform.

I had tried using Slony-I for replication and was not able to create a cluster.

After struggling for some time i decide to implement a way around to take differential backup. As the tables getting changed were very less.

Here is what i intend to do:

- Write a trigger for each of the tables in concern
- Some how write a function which can copy / execute the same query in another temp Db on the same physical system (I have no idea how to do that)
- Take a backup of temp DB which will be the differential backup of DB (We need to clear temp db after backup)

Am i going in the right direction?
Is there any way i can implement it.
Any help will be really of great help

Regards
Nishkarsh

Reply With Quote
  #2  
Old June 15th, 2009, 05:49 AM
pabloj's Avatar
pabloj pabloj is offline
Modding: Oracle MsSQL Firebird
Dev Shed God 7th Plane (8000 - 8499 posts)
 
Join Date: Jun 2001
Location: Outside US
Posts: 8,367 pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 3 Months 4 Days 14 h 12 m 34 sec
Reputation Power: 532
I'd rather fix my Slony, see http://pgsnake.blogspot.com/2007/09/setting-up-slony-i-with-pgadmin.html
and http://developer.pgadmin.org/~hiroshi/Slony-I/ and http://www.hagander.net/talks/Slony%20on%20Windows.pdf

Reply With Quote
  #3  
Old June 16th, 2009, 07:14 AM
Nishkarsh Nishkarsh is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2008
Posts: 13 Nishkarsh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 17 m 10 sec
Reputation Power: 0
Question

Quote:
Originally Posted by pabloj
I'd rather fix my Slony, see http://pgsnake.blogspot.com/2007/09/setting-up-slony-i-with-pgadmin.html
and http://developer.pgadmin.org/~hiroshi/Slony-I/ and http://www.hagander.net/talks/Slony%20on%20Windows.pdf


Hi pabloj,

I think i will need some help to do it.

I am using Postgres 8.3.7, on Windows.

I was following the Slony-I example in the help for pgAdmin III (it is exactly same as one in the link you sent). I am able to perform the steps from 1-7. Step 8 : create Slony-I cluster i am getting a msg in the interface

"Slony-I creation script no available; only join possible"

On doing some research i found some scripts to be copied (I was not able to find very clear instruction) or give slony-I path. i tried all that but was not able to move ahead.

Can u plz guide me through

Regards
Nishkarsh

Reply With Quote
  #4  
Old June 16th, 2009, 07:20 AM
pabloj's Avatar
pabloj pabloj is offline
Modding: Oracle MsSQL Firebird
Dev Shed God 7th Plane (8000 - 8499 posts)
 
Join Date: Jun 2001
Location: Outside US
Posts: 8,367 pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 3 Months 4 Days 14 h 12 m 34 sec
Reputation Power: 532
Google knows, see
http://archives.postgresql.org/pgad...11/msg00072.php but I agree that it should be better documented

Reply With Quote
  #5  
Old June 18th, 2009, 01:44 AM
Nishkarsh Nishkarsh is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2008
Posts: 13 Nishkarsh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 17 m 10 sec
Reputation Power: 0
Question

Quote:
Originally Posted by pabloj
Google knows, see
http://archives.postgresql.org/pgad...11/msg00072.php but I agree that it should be better documented


Hi Pabloj,

I had already tried using some things i found on line they did not worked.

I am having a windows XP System and there is no win32 folder..

I tried by copying the file to system32, windows, program files and c:\, it did not worked

I found another input on line that give the Slony-I path in pgAdmin III options. Tried that also. Did not work

Any other idea?

Regards
Nishkarsh

Reply With Quote
  #6  
Old June 18th, 2009, 05:43 PM
pabloj's Avatar
pabloj pabloj is offline
Modding: Oracle MsSQL Firebird
Dev Shed God 7th Plane (8000 - 8499 posts)
 
Join Date: Jun 2001
Location: Outside US
Posts: 8,367 pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 3 Months 4 Days 14 h 12 m 34 sec
Reputation Power: 532
Set the slony path in PgAdmin (File-> Options) and put sql files there (see here )

Reply With Quote
  #7  
Old June 19th, 2009, 01:02 AM
Nishkarsh Nishkarsh is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2008
Posts: 13 Nishkarsh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 17 m 10 sec
Reputation Power: 0
Question

Quote:
Originally Posted by pabloj
Set the slony path in PgAdmin (File-> Options) and put sql files there (see here )


Hi pabloj,

i had copied the the sql from share folder to share folder in in 8.3 directory. Also give the path in File-> Options. Is there any thing wrong i am doing??

Is there any help/tutorial for windows available any where...

Regards
Nishkarsh

Reply With Quote
  #8  
Old August 3rd, 2009, 02:51 AM
pavankumarveera pavankumarveera is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2009
Posts: 1 pavankumarveera User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 m 23 sec
Reputation Power: 0
"Slony-I creation scripts not available; only joining possible"

Hi Nishkarsh,

i also have same error when create the Slony-I cluster, please give me what is the solution.

"Slony-I creation scripts not available; only joining possible"


I fallowed some solutions like

 Xxid.sql, slony1_funcs.sql, slony1_base.sql file copy and rename as a Xxid.v84.sql, slony1_funcs.v84.sql, slony1_base.v84.sql

 All this script copy in to C:\WINDOWS\system32 folder


 In pgadmin option’s specified correct patch like “C:\Program Files\PostgreSQL\8.4\share”

But the problem persists.

Could you help me?
Are there any solution?

Thanks in advance for your support

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesPostgreSQL Help > Trigger Function and backup


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump




 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 




© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 3 Hosted by Hostway
Stay green...Green IT