473,545 Members | 1,734 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PostgreSQL Database Forum

PostgreSQL ORDBMS database - Ask questions about PostgreSQL development, administration replication, clustering, connection pooling, tables, indexes, databases, performance, SQL, queries and more.
0
429
thread by: Petr Duchon | last post Nov 11 '05 by: Petr Duchon
Hello everybody, Is it possible to design an arbitrary, hierarchical data scheme, that would allow its modification & extension during devel process? In ideal case, it should also support some inheritance. I tried ltree for the hierarchy, and that worx fine. But I ran into problems when traversing across different tables connected by id....
2
428
thread by: Pascal Polleunus | last post Nov 23 '05 by: Pascal Polleunus
Hi, I need to synchronize some tables from a database (master) to another one (slave). Both servers are running Debian Woody with PostgreSQL 7.2.1 (postgresql 7.2.1-2woody4). The databases are in unicode and doesn't contain any binary data. The tables have primary/foreign key constraints, sequences and indexes, but no triggers/rules....
3
427
thread by: Lada 'Ray' Lostak | last post Nov 12 '05 by: Shridhar Daithankar
Hi ! We are moving to PgSql application, with 'typical' style of work. Thin client, huge database. From database is (also) generated whole website. I will use it for explain my current todo. Right now, I am before solving following problem: Someone starts (let's say) adding 'new product'. It mean, he have to add records to many tables,...
0
426
thread by: Kaare Rasmussen | last post Nov 11 '05 by: Kaare Rasmussen
Sorry if this is obvious to you, but it's not obvious to me. In 7.4 this psql -h 127.0.0.1 test and psql -h localhost test will be authenticated as ipv6 addresses. As long as you know, it's OK, but is this intentional?
1
426
thread by: Stefan Leitich | last post Nov 12 '05 by: Peter Eisentraut
hi! i am developing with version 7.3.2 under cygwin. my production evironment is 7.3.3 on a suse machine. language settings (lc_...) for the server are on developing and production machine the same, 'C'. now i encoutered the following behaviour. i use a union select to unify a query result with an ' (all)' entry. i used at home a space on...
1
426
thread by: Errol Neal | last post Nov 12 '05 by: Richard Welty
Hi all, Not sure if this is a question for a php list or this one, but I'll give it a shot and if I am wrong, please do not crucify me. :-) There is a php based sourceforge project called mailwatch. (http://www.sourceforge.net/projects/mailwatch) It logs data from the excellent Mailscanner security product into a mysql database. Now, I...
0
425
thread by: Sergey Olefir | last post Nov 12 '05 by: Sergey Olefir
Hello! I am planning to use unique IDs in the little system I am building. Now being more than a little paranoid (and having no idea about expected loads), I am wary of using int4 as a basis for uids (for the fear of ever running out of them). So the logical choice would be int8, right? Unfortunately quite wrong. Statement of the form:...
0
425
thread by: Dennis Gearon | last post Nov 23 '05 by: Dennis Gearon
This post is as much about getting some questions answered as leaving the following definitions in the archives for the next person. After a quick perview of the web, I came up with the following: tablespaces are a hardware issue, and totally transparent to SQL execution. It is for optimization for IO, recovery, and separating user and...
1
424
thread by: kewl | last post Nov 12 '05 by: Jiri D. Hoogeveen
---------------------------(end of broadcast)--------------------------- TIP 7: don't forget to increase your free space map settings
3
423
thread by: PhilM | last post Nov 12 '05 by: fuzzy
Hi, I am looking for a database engine which: 1) runs under Windows (multiple versions) 2) Can be redistributed without additional fees as part of another product Is postgresql appropriate for this?
4
423
thread by: konf | last post Nov 12 '05 by: konf
Hallo, I tried to compile PGSQL 7.4 and I got error (durring make): ar: command not found What is it? Whe I can found it? I have: $ uname -a SunOS ... 5.8 Generic_108528-03 sun4u sparc SUNW,UltraSPARC-IIi-cEngine
0
423
thread by: Brian Maguire | last post Nov 12 '05 by: Brian Maguire
What's the best way to create a connection with dblink with persisted connections with web applications? For example: I want to have a view that links to a table in another pg database so I can mask the connection and make it easier to query. so I would do this ... create view myremote_pg_proc as select *
1
422
thread by: C G | last post Nov 12 '05 by: Ben
Dear All, I have some c code that writes results directly to a file as they're produced during a simulation. I want to modify the code to write directly to a postgres database using libpq. I think I could open a connection and insert into the database with a transaction, commiting at the end of the simulation. One problem with this approach...
0
418
thread by: Richard Welty | last post Nov 11 '05 by: Richard Welty
ok, i'm confused. i have two systems. one is redhat 7.1 (a server in colo, reasonably current), the other is 8.0 (my laptop). the server in colo is running postgresql 7.3.2 along with redhat's updated versions of apache and php for 7.1 (the php version is 4.1.2) on this server, php can access postgres without difficulty. my laptop is...
0
418
thread by: Duane Lee - EGOVX | last post Nov 23 '05 by: Duane Lee - EGOVX
I'm trying to insert data into an empty table but I keep getting the error: ERROR: could not open relation with OID 42939 I have a couple of constraints on the table but what I'm entering doesn't violate those. Can someone tell me where in the system catalog I can look to find what relation it is talking about? TIA, Duane
0
418
thread by: Robert Fitzpatrick | last post Nov 23 '05 by: Robert Fitzpatrick
I have a field in my pgsql 7.4.2 table that is char(6) type. This holds an ID that contains only numbers, but must be six characters in length. First two chars are the year followed by a sequential number. For instance, a number entered for the time this year would be '040001'. I was trying to setup a check constraint to make sure only number...
4
417
thread by: Leif K-Brooks | last post Nov 22 '05 by: Vishal Kashyap
I've been programming web applications in PHP/MySQL for a few years. It's worked pretty well, but I've been getting annoyed with the lack of more advanced features lately. After some reading, I've decided to switch to Perl/PostgreSQL. I'll be discarding all database data for other reason anyway, so moving data isn't an issue. I just want to...
6
417
thread by: Karl O. Pinc | last post Nov 23 '05 by: Robert Treat
These seem to work. I'm posting them now before I'm done with them before I start messing them up with specifics to my database. Any comment is welcome. However, I've no intention of publishing production quality code or documentation, these are my notes and I've used published them here in the event that somebody finds them useful. ...
0
416
thread by: Josué Maldonado | last post Nov 11 '05 by: Josué Maldonado
Hello list, First of all, excuse me if this is not the right site to ask my question. Is there a way in postgresql to loop to all the fields of a given table and compare the OLD and NEW value for each field. I need to make an audit table that must contain only the fields changed after and insert/update. Thanks in advance
0
416
thread by: Philippe Lang | last post Nov 12 '05 by: Philippe Lang
Hello, Is it possible to restore a database previously backed-up with "dump", and then recover some of the changes made after the backup, until a specific timestamp, by using some sort of "journal"? Is there such a feature in Postgresql? Thanks ------------------------- Philippe Lang Attik System http://www.attiksystem.ch
0
415
thread by: Jenny - | last post Nov 11 '05 by: Jenny -
following is taken from postgresql-7.3.2/src/backend/storage/lmgr/readme: "If we are setting a table level lock both the blockId and tupleId (in an item pointer this is called the position) are set to invalid, if it is a page level lock the blockId is valid, while the tupleId is still invalid. Finally if this is a tuple level lock (we...
1
415
thread by: Thomas Reat | last post Nov 12 '05 by: Tom Lane
I need to change a varchar(32) to varchar(1024). It is a primary key that many tables reference. How do I do this without reloading the entire database?
0
414
thread by: Daniel Schuchardt | last post Nov 11 '05 by: Daniel Schuchardt
Hi @ all, I'v noticed if you kill -9 the Postmaster Temporary Tables (Shemas) will stay in the DB also a VACUUM FULL will not remove them after restart. Daniel. ---------------------------(end of broadcast)--------------------------- TIP 5: Have you checked our extensive FAQ?
1
414
thread by: Alessandro GARDICH | last post Nov 11 '05 by: Greg Stark
Hi to all i received "message type 0x50 arrived from server while idle" ... RedHat Linux 9, postgres 7.3.4 the program is quite simple, a loop do UPDATE on a random entry on a table. Server is without autocommit. with setittimer and SIGALRM i do an explicit COMMIT every 10 seconds,
8
413
thread by: Carter Harrison | last post Nov 23 '05 by: Doug McNaught
I'm running the latest version of PostgreSQL. I backed up one of my databases following the instructions in the postgresql documentation. This means that I did shut down postmaster and I tarred the data directory just like it says to. Now, I'd like to restore the file system. I started by just copying the data directory back, but that...

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.