473,387 Members | 1,650 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How to edit oid of database?

I want to create 2 databases in 2 server and these have only one OID. Example:

Server 1: database 'Test' with OID: 16384
Server 2: database 'Test' with OID: 16353

I want to edit OID of database Test on server 2 to 16384.
How to do that?

And how to create a database with fix OID??

(I have a problem when using replication with pgpool II, pgadmin cannot connect to new database because they have 2 different oids from 2 servers, please help!)

Thanks!
Jul 5 '10 #1
1 6170
rski
700 Expert 512MB
I don't think edit OID it is a good idea, it is not 'supported' by postgres.
You probably can try to edit it ('postgres pg_catalog hacking' :)) but probably it may be not easy.
Why don't you backup the first database and use it to create the second one. If both clusters should be the same you can also just copy cluster where the first database is installed to the second server.
Jul 8 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: Ruby Tuesday | last post by:
Which one is better to do dynamic websites using MySQL? Thanks a.. ADODB, http://php.weblogs.com/ADOdb/ b.. Metabase, http://www.phpclasses.org/browse.html/package/20.html c.. PEAR::DB,...
25
by: dixie | last post by:
I have some code that adds new records into a table for each ID in a list box when a button on a form is clicked. This works fine. My problem now is that I wish to be able to edit all the records...
4
by: visionstate | last post by:
Hi all, I have built my 1st database and it is ready to go on a shared network drive. I have read a few articles about the security in access but am having some trouble getting my head around it...
2
rcollins
by: rcollins | last post by:
I am pretty new at mysql. I have a database that has a corrupt entry that I need to remove. If I open it in VI, it is all scrambled. What do I use to see the tables in my database? Any help would be...
3
by: ontherun | last post by:
Hi, I was asked to make some changes in a database created in Access 2003 by someone in my office. when i opened it, i could once see "File", "Window" and "Close" in the menu bar. I could not...
1
by: Markw | last post by:
Hi folks I think I've got a variable problem but not 100% sure. Background: I took the CMS example from chapter 6 in "Build your Own Database Driven Website Using PHP&MySQL" and have attempted to...
4
by: ghjk | last post by:
I want to edit database values using my web application. So first i load data to test boxex and drop down list. But drop down list only contain one value. I want to put all posible value to that and...
2
vikas1111
by: vikas1111 | last post by:
Hi All I want to edit and save changes in access data base using visual basic 6. Can anybody please help me ????
0
by: ghjk | last post by:
I'm new to java.I,m developing web application using jsp,struts,hibernet. I want to edit database record. This is my code and when I edit and save it it didn't update record but add a new one. Please...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.