473,544 Members | 1,778 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
1,230
thread by: Sid | last post Jul 19 '05 by: Sid
hi i want to write a php script that will back up all tables for postgres on a weekly basis. does anybody know how to read the table names/columns from php? thanks
3
5,808
thread by: afila | last post Jul 19 '05 by: Tim Ashman
Hello, Im trying to get some kde database application working, but I cant get them connected to the postgres server. psql connect seamlessly with - lets say - music database. But kde application dont? I created the user "janusz" in postgres I lived untached /etc/postgresql/pg_hba.conf (I understand localhost can connect allthe time) ...
0
1,346
thread by: Thomas Reat | last post Jul 19 '05 by: Thomas Reat
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
1,698
thread by: Thomas Reat | last post Jul 19 '05 by: Thomas Reat
The postgresql documentation claims that "on insert" rules are executed after the insert. This is not happening for me. I have a rule that is being executed even though the insert should have failed due to a foreign key check. The rule does an insert that is failing, and the whole insert fails. So in this case it's not a huge problem. But I...
0
3,051
thread by: NahtMy ReelName | last post Jul 19 '05 by: NahtMy ReelName
I want to allocate a contiguous block of ID's from a sequence generator. My concern is that between the time I call nextval() to get the start of the block and setval() to set a new starting seqence number past the end of the block that some parallel computation may already have called nexval() and allocated something within my block, or...
0
2,007
thread by: Sam | last post Jul 19 '05 by: Sam
I'm trying to create a template database as a superuser. I set the value in pg_database datistemplate to 't'. But when I create a database as another user i don't have any priviliges on the tables in the new database. So I granted ALL to PUBLIC on the tables in the template database. Now when I create a database with the new template I can...
0
1,988
thread by: Brendan LeFebvre | last post Jul 19 '05 by: Brendan LeFebvre
I have a script that updates one record in a PostgreSQL 7.2.1 database through the Perl DBI. Here is the output from my log, which outputs the query sent to the DBI and the return value: --- Update query: UPDATE item SET status='SOLD' WHERE item_id=1129832 1 rows affected.
1
1,694
thread by: Amir Khawaja | last post Jul 19 '05 by: boyd
Hi Everyone, I have a rather trivial (I hope) question about OID types and PostgreSQL. Since PostgreSQL creates tables "WITH OIDS" by default, I'm wondering if it is bad practice to allow the default behaviour. For example, if I have a database with 60+ tables (all tables have their own PK that is not of type OID) and all of them have an...
1
5,338
thread by: Google Mike | last post Jul 19 '05 by: Google Mike
I have a tough SQL join query and I figured it out, so I thought you might find it useful. I have 3 tables with tracking numbers in them. I want to think of the sum of all these tracking numbers, then find non-matches to a master tracking number table. When I find non-matches (orphans) in the master tracking number table, I want to...
2
5,167
thread by: Steven O. | last post Nov 22 '05 by: William ZHANG
First, this may not be the correct newsgroup. I have some relatively basic questions on SQL. I tried to find a newsgroup that was specifically just about SQL, and was surprised to find that all the SQL-related newsgroups seem to be product related. But if I missed something, and someone can steer me to a correct newsgroup, please do so. ...
1
3,722
thread by: Sam | last post Jul 19 '05 by: boyd
I'm having trouble restoring databases that have to lo type installed in /contrib/lo. The dump seems to work just fine, I get no errors when I execute the following command #pg_dump -Fc -o -b mydb > mydb_dump > CREATE DATABASE mydb_restore TEMPLATE template0
1
2,623
thread by: Liza | last post Jul 19 '05 by: boyd
Hi, I'm a novice to postgress and need to constract a simple tree. In my table I have: regionID int parentID int name char I need to do two functions: find all the children of XXX parent and find if an item is a child of an XXX parent.
0
1,865
thread by: antonio | last post Jul 19 '05 by: antonio
Hi, I have one trouble about exec sql define. Here's an example: EXEC SQL DEFINE INTSIZE 2; EXEC SQL DEFINE I_(x,y) char x; EXEC SQL TYPE CUSTOMER_RECORD IS STRUCT { I_(cno,2)
1
3,051
thread by: thierry | last post Jul 19 '05 by: Nunya
hi, i make programms with c# and i would like to know if there is an alternative to odbc(wich is not really fast) to dialog with postgre. thanks thierry
1
1,986
thread by: Axier | last post Jul 19 '05 by: Unregistered
Hi, I wonder how this can happen. A "not null" field is set to "" even if a sequence should set this to next sequence number. Ok, I know it is not set to null, it is set to '' which is proven by the below Select statement but it is not set to the next sequence number and the inserts
0
1,347
thread by: Joan | last post Jul 19 '05 by: Joan
Hello, I can set user varibales in postgresql (ALTER USER user SET search-path=$owner,public,other;) and I can reset. (ALTER USER user RESET search-path) But, how can I show user variables? ALTER USER user SHOW search-path; <-- error.
1
2,712
thread by: Ralph | last post Jul 19 '05 by: Christopher Browne
My company is researching the idea of moving from a very large, old and complex UniData DB to something else that is newer and quicker. I was thinking about PostgreSQL, but am not sure PostgreSQL could import the data, and / or what kinds of issues could arrise, not to mention if it's even possible in the first place. Your thoughs would be...
1
1,531
thread by: johnny1024 | last post Jul 19 '05 by: Tony Reina
Hi I'd like to ask you when (if ever) you predict to release native support for Windows. And what PostgreSQL version will be the first supported. Thanks for answers jan
2
2,148
thread by: Remi | last post Jul 19 '05 by: Unregistered
Hello, I've installed redhat enterprise 3 on a system to use as a db server. Manually I can install and run postgresql 7.3 (the one on the extras CD). The problem is when you try to add postgres as a service, it might add it, but it will not start it. To do this, we got a postgresql script, placed it in the init.d folder with all the other...
3
2,588
thread by: RobertG | last post Jul 19 '05 by: no-spam
Hello I have 2 databases on PostgreSQL, for instance base1, base2. I connect to psql: psql -p 3333 base1 how can I access to base2 ? for instance I wont do instruction: insert into test(a, b) values select a, b from basa2.test
0
1,244
thread by: NagitaK | last post Jul 19 '05 by: NagitaK
Is there a method to encrypt data on postgresql similar to SafeJDBC?
1
3,682
thread by: Hunter | last post Jul 19 '05 by: mali_djuro
Hi group - I'm using php to extract data from postgres and print to browser. I have data that was input through checkboxes on a form - each checkbox had a different value but got pushed into the same column. So - my values look like this: surveys=# select distinct(additionaldeliverablearray) from csssurvey; additionaldeliverablearray...
0
1,631
thread by: Joe | last post Jul 19 '05 by: Joe
I'm a PostgreSQL newbie and I had a quick question concerning a setup that I have. I current have three tables, a, b, and c. On my create table statement for table a, I have the following: create table a ( id VARCHAR(3) NOT NULL, name VARCHAR(15) NOT NULL, CONSTRAINT a_pk PRIMARY KEY (id) ) INHERITS (b);
0
2,772
thread by: Ivo Anon | last post Jul 19 '05 by: Ivo Anon
I'm new to postgresql and I'm having problems with the 'nextval' function (or whatever it is called in postgresql). I created a table (called ADDRESS) using 'pgadmin' which has a serial field (called addressid). When I tried the sql statement: select nextval('public."ADDRESS_addressid_seq"') everything seemed to be working fine.
0
1,778
thread by: Alain Reymond | last post Jul 19 '05 by: Alain Reymond
Bonjour, Is there an embedded sql precompiler for MF Cobol for Postgres or such a project ? Regards. Alain

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.