473,811 Members | 3,579 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.
1
1,217
thread by: Jon Asher | last post Nov 23 '05 by: Martijn van Oosterhout
Hi, Our new Postgres database includes a table with about 1 mil records. So far, I've been impressed with the performance of queries against 1 mil rows. Unfortunately I just found out that the size of the table will increase to 3 mil records. Can I expect Postgres to return results on a query with a basic join against a 3 mil record...
1
5,702
thread by: Nick | last post Nov 23 '05 by: Joe Conway
Hi, I'm trying to extract element of a directory path stored in the db with substring "/help/support/index/time.jsp" and i want to extract the 1st, 2nd and 3rd parts 1st = help, 2nd = support, 3rd = index
2
2,254
thread by: Deepa K | last post Nov 23 '05 by: Deepa K
Hi, In my PC, eth0 is not up because of IP address clash (another PC is using the same IP address). I tried to execute a file which has set of insert commands. After executing the file, when I go and see the database, no rows are inserted. I redirected the output to another file. It shows success for all inserts, but no rows in database. This...
5
3,640
thread by: Jon Lapham | last post Nov 23 '05 by: Tom Lane
I have been using the EXPLAIN ANALYZE command to debug some performance bottlenecks in my database. In doing so, I have found an oddity (to me anyway). The "19ms" total runtime reported below actually takes 25 seconds on my computer (no other CPU intensive processes running). Is this normal for EXPLAIN ANALYZE to report a total runtime so...
3
1,999
thread by: Jeff Amiel | last post Nov 23 '05 by: Bruce Momjian
I ran a home-grown self continuous stress test tool against my 7.4.2 database. I banged 'ps' (running freebsd) while it was active and witnessed several of the 'back end' postgres processes exeucting queries, commits, inserts, etc....(the actual work the processes were doing was listed in the 'ps' output) however, if I checked...
0
1,709
thread by: Shujun Huang | last post Nov 23 '05 by: Shujun Huang
Hi, I am working on converting Informix database to Postgre. I have one question for fetching records using PostgreSQL. The record I am fetching is a variable size text string. Before fetching the record, a preallocated static buffer size will have to be declared beforehand in the declaration section. Since the record sizes vary a lot,...
1
3,171
thread by: Scott Gerhardt | last post Nov 23 '05 by: Greg Stark
Hello, I am new to the list, my apology if this question is beyond the scope or charter of this list. My questions is: What is the best method to perform an aggregate query to calculate sum() values for each distinct wid as in the example below, but except for all wid's (not just WHERE wid='01/1-6-1-30w1/0'). Also, performance wise,...
1
2,346
thread by: Chris M. Gamble | last post Nov 23 '05 by: Tom Lane
I recently upgraded an application from postgresql 7.4.2 to 7.4.5, and now I am having timezone nightmares. I checked on the old server, and found that in the postgresql.conf, the timezone was set for unknown. The timezone portion of the records was being set to GMT+06 ( for reference, I am in GMT-06 ). Now, on the old server, wheni pulled...
2
1,531
thread by: Ennio-Sr | last post Nov 23 '05 by: Ennio-Sr
Hi! I'm thinking about creating a table listing my shares (say 'Shares') and then update its price column from a .txt file (say 'Prices') downloaded from an internet site periodically. Recalling past readings my first idea would be to use something like: => update table Shares set price = (select price from Prices) where Shares.name =...
1
1,321
thread by: Philip A. Chapman | last post Nov 23 '05 by: Tom Lane
Everyone, I am about to begin a project which will use Java (JDBC) and postgresql. In most Java projects, I do not embed SQL code, but create functions which have the SQL logic. I call the functions from within my Java code. For selects, the functions return refcursors, which the Java code can get results from. However, a seperate team...
2
1,099
thread by: DeJuan Jackson | last post Nov 23 '05 by: DeJuan Jackson
It appears that the Slony list isn't accepting traffic/posts at all. I posted a message yesterday (2004-08-24) and haven't even received it myself at this point (2004-08-25). Just thought I'd give a heads up, in case now one knew. ---------------------------(end of broadcast)--------------------------- TIP 4: Don't 'kill -9' the postmaster
3
1,455
thread by: Hadley Willan | last post Nov 23 '05 by: Greg Stark
Hi, I was wondering if it's possible to order the result set by some of the set contained in an IN clause. For example. SELECT * FROM v_fol_unit_pub_utmpt WHERE folder_folder_object = 100120 AND unit IN ( 90072, 90005, 90074, 90075 ) AND unit_pub_type IN ( 2 ) AND utmpt IN ( 1 ); Results in.
1
3,498
thread by: Liu, Mingyi | last post Nov 23 '05 by: Alvaro Herrera
Sorry if this question has been asked before. I tried to search in postgres mailing lists at http://archives.postgresql.org/pgsql-general/ just now and it gave me error "An error occured! Can not connect to search daemon". Anyway I installed tsearch2 and openFTS and was able to do some searches. However, when I checked searching partial...
0
1,071
thread by: Dino Vliet | last post Nov 23 '05 by: Dino Vliet
Hi folks, I'm new to PostgreSQL and am busy tring to work with it. Of pl/pgsql I know even less and that's the part I have a question on right now. I have this nice example to get me started with pl/pgsql....... I have a table with the schedule of a service my sport team wants to offer:
0
377
thread by: Ennio-Sr | last post Nov 23 '05 by: Ennio-Sr
Hi all! After a very long struggle I finally succeded in transferring my old *.dbf file and the relating *.dbt (alias memo fields) to a pg table. For the time being I put the memo field in a separate table having two fields only (i.e.: n_memo integer, memo text) which can be related to the main table in a view.
1
2,997
thread by: Ulrich Wisser | last post Nov 23 '05 by: Richard Huxton
Hi, after seeing some mysterious messages about missing from clauses I did turn on query logging. Unfortunately am I now more confused then before. Aug 25 09:22:38 balder postgres: LOG: query: SELECT * FROM LOGIN Aug 25 09:22:38 balder postgres: where USERNAME='ulrich' Aug 25 09:22:47 balder postgres: NOTICE: Adding missing
5
2,362
thread by: Silvio Matthes | last post Nov 23 '05 by: Silvio Matthes
Hello, I'm new to the list and did not find a suitable answer to my question so here it is: I try to select the rows of a table where the content of a varchar-column is empty ('') and PostgresQL is doing a seqscan. I've tried this on a PostgresQL-Serverversion 7.3.4 and 8.0 beta1.
2
351
thread by: Matthias Blohm | last post Nov 23 '05 by: Jan Wieck
Hello, a question about a tool or a possibility how could something work. following situation: we have a database which is full of very sensitive information and needed that db to use our online website. but now we move the website to a server outside our office and needed to replicate only some datas to the online db. with the tool slony i...
2
1,178
thread by: Matthew Hixson | last post Nov 23 '05 by: Kris Jurka
Just wondering why the 7.4.5 tarball doesn't include the JDBC driver source. Was this an error or do we now have to download the driver separately from jdbc.postgresql.org? -M@ ---------------------------(end of broadcast)--------------------------- TIP 3: if posting/reading through Usenet, please send an appropriate subscribe-nomail...
5
1,310
thread by: Carlos Moreno | last post Nov 23 '05 by: Tom Lane
I just noticed that from a C or C++ program using libpq or libpq++, I can send *one* command that contains several SQL statements separated by semicolon. Something like: PgDatabase db (" .... "); const char * const sql = "insert into blah (...); insert into blah (...)";
2
4,853
thread by: Frank van Vugt | last post Nov 23 '05 by: Frank van Vugt
Hi, Not exactly a showstopper, but I noticed this behaviour: db=# create table f1 (id int, value int); CREATE TABLE db=# insert into f1 select 1 as id, null; INSERT 25456306 1
1
5,789
thread by: Ennio-Sr | last post Nov 23 '05 by: Carlos Moreno
Hi all! Testing a script where I need to make sure that postgresql is running before passing a <psql dbasename -c "insert into ..." > instruction I faced this curious behaviour: This is the relevant content of the script: ------------------ #!/bin/bash /usr/lib/postgresql/bin/pg_ctl status -D /var/lib/postgres/data >/dev/null 2>&1 rtn=$?
2
1,819
thread by: Oleg | last post Nov 23 '05 by: Oleg
Dear All, I have upgraded Postgresql from 7.3 to 7.4. Starting pg brings error: The database is in an older format that cannot be read by version 7.4 of PostgreSQL dpkg-upgrade postgresql fails I tried postgresql-dump. While dumping it brings the following error: FATAL: unsupported frontend protocol However the dump file is generated.
0
967
thread by: Guy Naor | last post Nov 23 '05 by: Guy Naor
Hi, I want to use Postgres as a hosted solution, and I want the Postgres server to have a different database per hosted client. What is the practical limit to the number of different databases a single server can support? Thanks, Guy. ---------------------------(end of broadcast)--------------------------- TIP 1: subscribe and...
0
1,483
thread by: sripathy sena | last post Nov 23 '05 by: sripathy sena
Hi, I am trying to install OPenacs with postgres 7.4.3 as the database. The openacs requires plpgsql to be installed. When I try to do this by running "CREATELANG plpgsql template1". I get a message file plpgsql not found in lib directory.

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.