473,811 Members | 2,970 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.
2
3,979
thread by: Robert Fitzpatrick | last post Nov 23 '05 by: Tom Lane
While this function works when hard coded, the following will not when trying the same thing with a argument. Can someone point to me what I'm doing wrong? CREATE OR REPLACE FUNCTION "public"."test" () RETURNS varchar AS' DECLARE var1 varchar; BEGIN var1 = chr( (ascii(''a'') + 1) );
3
2,055
thread by: Nikola Milutinovic | last post Nov 23 '05 by: Bruce Momjian
Hi guys. I have just had some problems resolved while building PostgreSQL 7.4.2 on Tru64 UNIX 5.1B. File "./src/backend/utils/adt/float.c" uses "NAN" on two spots. It ahs a fall-back definition of NAN as: #define NAN 0.0/0.0
1
1,683
thread by: Mike Mascari | last post Nov 23 '05 by: Tom Lane
This is a really trivial question, but I'm curious. Why do subselects in target lists behave differently than simple queries? Ex: create temporary table bar (key varchar(32) not null); CREATE TABLE insert into bar select ''; INSERT 1319585 1 insert into bar select (select '') as key;
2
1,237
thread by: Antony Paul | last post Nov 23 '05 by: Paul Thomas
Hi all, What are the characters which requires an escape sequence when used in the query. I am writing an application using JDBC. rgds Antony Paul ---------------------------(end of broadcast)--------------------------- TIP 7: don't forget to increase your free space map settings
1
1,313
thread by: Ananthajothi | last post Nov 23 '05 by: Oliver Elphick
Hello Sir, I like to know in postgresql, how many connections are established in the system?. how many connections can be made?. We are using linux. Thanks Regards
0
1,207
thread by: Phil Endecott | last post Nov 23 '05 by: Phil Endecott
Dear PostgreSQL people, I thought that some of you might be interested to know about Decimail, a new IMAP mail server that I've written that uses PostgreSQL to implement its message store. Decimail's unique feature is that mailboxes are defined using SQL queries. So for example you can match all messages to this list with this query:
1
1,445
thread by: Reuben D. Budiardja | last post Nov 23 '05 by: Tomaž Borštnar
Hi, I know that 7.2, 7.3, and 7.4 are not compatible. But I'm wondering if the client lib (libpq.so) is compatible across those versions. The thing is, my old database is 7.2. I upgrade my system using Redhat Enterprise, which shipped with 7.3 and use the client of the PHP-pgsql module (PHP compiled with --with-pgsql flag). So I assume the...
0
824
thread by: Vitaly Belman | last post Nov 23 '05 by: Vitaly Belman
I ready somewhere that PostgreSQL is able to optimize SQL functions, the same way it does with views. For example if you do: select * from cv_customers() order by customer_id; When customers is an SQL function the optimizer/planner will be able to actually use the customer_id index. >From some tests I made it doesn't seem true.. Yet I...
2
1,740
thread by: Rune Froysa | last post Nov 23 '05 by: Tom Lane
I have one table with columns that are used as foreign-keys from several other tables. Sometimes deletion from this table takes +5 seconds for a single row. Are there any utilities that can be used to figure out why the deletion takes so long? "ANALYZE DELETE FROM foo WHERE bar=gazonk" doesn't really help as it only explains how the where...
6
3,100
thread by: wespvp | last post Nov 23 '05 by: Tom Lane
If max_fsm_pages is too small and I have space not reclaimed by vacuum, if I increase max_fsm_pages and restart postmaster, will the next VACUUM ANALYZE relcaim all overlooked pages or must I do a VACUUM FULL? Wes ---------------------------(end of broadcast)--------------------------- TIP 9: the planner will ignore your desire to...
1
1,850
thread by: Plant Thomas | last post Nov 23 '05 by: mike g
Hi, I have a problem restoring a database from Postgresql 7.3 ( backup created with 'pg_dump -Ft -b > test.tar' ) to a new database on PostgreSQL 7.4.3 on Cygwin. I get the following error: pg_restore: executing SEQUENCE SET t_tab_kurs_template_id_seq pg_restore: could not execute query: ERROR: relation "t_tab_kur s_template_id_seq"...
1
2,496
thread by: Szymon | last post Nov 23 '05 by: Alvaro Herrera
Hello! I have accidentaly deleted about 1,000,000 records from one table (about 80%). Is there any possibility to recover them? I found two files: xlog and a file which I assume contains all the data from the table (including the deleted rows). But I cannot read from it - I don't know the format of the data. Can anyone help me? Private...
1
2,681
thread by: Otto Blomqvist | last post Nov 23 '05 by: mike g
Hello ! I'm writing a DB app using Delphi 7. The PostGres Delphi components we are using are PostGreDAC from MicroOLAP, the latest ODBC drivers (from postgre.org)and PostGres 7.2.2. The certificates are installed and running (postmaster starts fine). When I try to connect I get the following Error Message PostGreSQL Error Code(1):...
1
3,425
thread by: MargaretGillon | last post Nov 23 '05 by: Tom Lane
I am using PGADMIN III v1.1.0 Windows to set up PostgreSQL tables on a Linux Server, RedHat 9. Every time I create a character field, even just one character wide, the PGADMIN uses EXTENDED as the default storage type. Is this normal? I can't find anything about why this would be done in the PostgreSQL documentation or the Internet. It seems...
19
2,761
thread by: Andy B | last post Nov 23 '05 by: Scott Marlowe
Hello, Sorry for this newbish question. Briefly, my problem: ------------------ I expect the database I'm working on to reach something in the order of 12-16 Gigabytes, and I am interested in understanding as much as I can about how I can make this go as fast as possible on a linux system. I haven't run such a large database before. The...
3
933
thread by: culley harrelson | last post Nov 23 '05 by: Bruce Momjian
Hi, We just experienced this bug: http://tinyurl.com/28gkh on 7.4.1 (freebsd and os x). Is there any chance this is on the list for 7.5? culley
1
1,043
thread by: Sally Sally | last post Nov 23 '05 by: Bruno Wolff III
I was wandering how I can add a user to a specific db. There are several databases but I want to add the user to only one of them. It seems when I add a new user, it is entered in the pg_user table and I can log in to any one of the other dbs (ofcourse I won't be able to do anything until I grant permission still I don't even want to be able...
0
306
thread by: Dan Perlman | last post Nov 23 '05 by: Dan Perlman
Hi, Below is my VB6 code that writes data from an Access 2000 table to a PG table. The " & "" " on the right of each line should prevent nulls from being passed to PG. For some reason I still get nulls in any field without data. Even the secondary part number which is set to "".
6
12,246
thread by: Thomas Mueller | last post Nov 23 '05 by: Thomas Mueller
Hi, I tried to install phpopenchat but I can't create this table: poc=> CREATE TABLE poc_user_account ( poc(> USER varchar(255) NOT NULL, poc(> PASSWORD varchar(255), poc(> CONFIRM_CODE char(32), poc(> DISABLED int NOT NULL DEFAULT '0', poc(> KICKED int NOT NULL DEFAULT '0',
1
1,029
thread by: Marek Nowiński | last post Nov 23 '05 by: Richard Huxton
I accidentaly deleted over 1.000.000 records from one table in my database. Is there any way to recover them? Please help me as soon as possible... After the records were deleted, no other operation was made on the database. In fact, all the postgres services were shut down. I found a xlog file containing those records but I don't know the...
5
1,242
thread by: Timothy Perrigo | last post Nov 23 '05 by: Martijn van Oosterhout
This bug? feature? caused a bit of havoc for us yesterday...A reproducible example follows. Essentially, if you have a table with a primary key called "id", and you create a temp table (via a "select into") containing a subset of the data from the table but where the primary key field is renamed (in the example below, it is called "not_id"),...
1
1,781
thread by: Maus | last post Nov 23 '05 by: Paul Thomas
I know the following java instructions for connecting a DB (oracle in this case): import java.sql...... try { Class.forName("oracle.jdbc.driver.OracleDriver"); String dbUrl ="jdbc:oracle:thin:@"+host+":"+port+":"+sid; Connection m_connection = DriverManager.getConnection(dbUrl,user,passwd);
1
1,228
thread by: Jim Rosenberg | last post Nov 23 '05 by: Bruce Momjian
I'm thrilled by the news that nested transactions will make it into 7.5 after all, and trying to learn how this will work. The question is what will be the syntax to start / commit / rollback a subtransaction. Leaking a bit from pgsql-hackers I see this very subject was the subject of some lively discussion as recently as 3 days ago. ...
1
3,880
thread by: B.W.H. van Beest | last post Nov 23 '05 by: Alvaro Herrera
Gentle people, I don't get it. I have a table where one of the columns is of type 'TIMESTAMP' How can I do a query to filter on the TIMESTAMP value, e.g. to obtain all rows earlier than a certain time stamp? Regards,
10
1,561
thread by: Aaron Burghardt | last post Nov 23 '05 by: Benjamin Reed
I attempted to compile 7.4.3 with enable-thread-safety but it fails and says it's not supported. My configure command was: ../configure --enable-thread-safety and the result: checking pthread.h usability... yes checking pthread.h presence... yes checking for pthread.h... yes

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.