473,788 Members | 2,692 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
3,921
thread by: CSN | last post Nov 12 '05 by: Tom Lane
What exactly is the "SQL_ASCII" encoding for databases? Is it like Unicode, UTF-8, ISO_8859_x, ...? In what cases wouldn't you want to use it? __________________________________ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree ---------------------------(end of...
0
1,354
thread by: Steve Crawford | last post Nov 12 '05 by: Steve Crawford
In one system I have a table of work to be done (for simplicity in this explanation I'll use a table consisting of id and status). A client-side app needs to fetch 10 available items from the table but naturally we don't want two clients working on the same 10 items. My first attempt at handling this was, in pseudocode: begin...
2
2,262
thread by: Chris M. Gamble | last post Nov 12 '05 by: Andrew Sullivan
My company has just finished a simple replication system in java. We are now interested in sharing our work under the GPL license so that we can hopefully work with others in improving this product. Would such a thing be useful, or simply overly redundant considering the current development cycle of other more advanced systems? Thanks, ...
0
1,352
thread by: George Essig | last post Nov 12 '05 by: George Essig
I have installed tsearch2 and have noticed that the gist index used to do searches grows and grows as I update rows, delete rows, or run VACUUM FULL ANALYZE. Below are some details: PostgreSQL 7.4RC1 Red Hat 9 Table "public.series" Column | Type | Modifiers...
7
3,759
thread by: Najib Abi Fadel | last post Nov 12 '05 by: Tom Lane
Is postgres going to support in a future release the use of SUBSELECT in a CHECK expression ?? Thx
0
1,607
thread by: Jan Poslusny | last post Nov 12 '05 by: Jan Poslusny
Hallo, we runs PostgreSQL 7.3.4 on RedHat 9. I initialized dbcluster with --locale=cs_CZ.UTF-8 and created database with --encoding=unicode. But following script generates error: -- -*- coding: iso-8859-2 -*- set client_encoding to LATIN2; create table t (txt text); begin; --inserted character is latin small letter r with caron, coded in...
4
1,723
thread by: Dave Smith | last post Nov 12 '05 by: Greg Stark
After a abnormal system shutdown I am trying to run a vacuum full verbose ANALYZE and getting the following error. NOTICE: Analyzing classification NOTICE: RelationBuildDesc: can't open pg_temp_5821_0: No such file or directory NOTICE: --Relation pg_temp_5821_0-- ERROR: _mdfd_getrelnfd: cannot open relation pg_temp_5821_0: No such...
0
1,057
thread by: Damon | last post Nov 12 '05 by: Damon
Hi, I need to query pg_constraint's conkey field in my C++ program. I am not sure how to store the result as it appears to be an array. Thank you. Regards, Damon
1
2,538
thread by: Damon | last post Nov 12 '05 by: Damon
Hi, I need to query each column's constraint and name of a table in postgreSQL v7.3.4 with a single SQL query but don't know how. Would appreciate any pointers! Thank you. Regards, Damon
6
2,483
thread by: Bjørn T Johansen | last post Nov 12 '05 by: Bjørn T Johansen
I need to maintain a manually counter for an id-field, but I can do this two ways. Either make a counter table (which means one select and one update) or just selecting the largest id from existing table and increment by one (just one select + one table lock). Which one is fastest? Regards, BTJ
1
361
thread by: Alexandr S | last post Nov 12 '05 by: Richard Huxton
Hi There is question. I have column name_my varchar (not array) in table1, and column name_my_ref varchar (array) in other table2. I want set Foreign Key on name_my_ref and every element in the same row of array must match any element in name_my. How can I do this? ---------------------------(end of...
1
1,708
thread by: Alam Surya | last post Nov 12 '05 by: Mike Mascari
hello all...... I have a litle question, do i have acces linux command from postgresql query like send message to others linux user in LAN ? any feature for that ? thanks regards, Alam Surya
2
1,173
thread by: Alex | last post Nov 12 '05 by: Bruno Wolff III
Hi, is there a document available describing the changes / additions in 7.4 ? Thanks Alex ---------------------------(end of broadcast)--------------------------- TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
4
1,888
thread by: Alex | last post Nov 12 '05 by: Jan Wieck
Hi, I have a bit string , 7 bits, every bit representing a day of the week. e.g. 1110011. Is there and easy way where I can translate/format that string in a query. I want to give the string back with a '-' for every 0 and the first char of the Day for every '1'. example 1100111 = SM--TFS. thanks for any suggestions
1
2,187
thread by: Greg Hulands | last post Nov 12 '05 by: Stephan Szabo
I have a table called Person that has a primary key personID. Another table called ProUser that inherits from Person. In another table called ProPriceSchedule I have a foreign key constraint to the ProUser table, like so: CONSTRAINT proUser FOREIGN KEY (personID) REFERENCES ProUser(personID). The problem I am having is this: ERROR: UNIQUE...
2
1,426
thread by: Victor Spång Arthursson | last post Nov 12 '05 by: Francois Suter
Can't select 3 columns from a table called varer. The columns are the three first and are called vnummer, puNr and dNr. The error message is: indiadan=# select varer.vNummer from varer; ERROR: No such attribute varer.vnummer indiadan=#
3
4,407
thread by: Max Speransky | last post Nov 12 '05 by: Martin Hart
Hello My task is to validate expression and get value of it in boolean variable. I try to do following: CREATE OR REPLACE FUNCTION get_value(integer) RETURNS boolean AS' DECLARE Ret boolean; Op TEXT = ''=''; BEGIN
6
2,611
thread by: Rob Fielding | last post Nov 12 '05 by: Rob Fielding
Hi, We're currently experiencing a problem where SQL statements are failing when entring a '' for not not-null integer columns: ERROR: pg_atoi: zero-length string This was discovered just after a database migration from 7.2 to 7.3.4. Example:
1
1,488
thread by: Edwin Quijada | last post Nov 12 '05 by: Tom Lane
Hi! I am trying to do a dump all and when I do this I get this error pg_dumpall: query failed: ERROR: Unable to convert abstime 'invalid' to timestamp pg_dumpall: query was: SELECT usename, usesysid, passwd, usecreatedb, usesuper, CAST(valuntil AS timestamp) FROM pg_shadow WHERE usesysid <> (SELECT datdba FROM pg_database WHERE datname =...
1
1,761
thread by: Jan Poslusny | last post Nov 12 '05 by: Peter Eisentraut
RedHat 9, PostgreSQL 7.3.4. When I perform initdb --locale=cs_CZ createdb --encoding=latin2 lat createdb --encoding=unicode uni , the tables of lat are sorted fine, but the tables of uni not. When I initdb --locale=cs_CZ.UTF-8, sorts of uni are good, but sorts of lat not. Is some way to create two databases in the same database cluster...
0
977
thread by: Hijax | last post Nov 12 '05 by: Hijax
Hi all!! I've got a serious problem with time functions.... After changing time (dayligt savings) now() returns decreased time. Linux date command returns proper time... UTC+2... postgres returns UTC+0 :( Why? What is wrong with postgresql configuration?? Help...
2
1,671
thread by: CY | last post Nov 12 '05 by: Ang Chin Han
Hello list I hope someone can gave me a hint / advice on this. I wanted a auto-increasement function, similar to sequence, to increase a field. I cannot use CREATE SEQUENCE because it cd_line_no will start again with a new coursedetail. TQ in advance.
1
1,933
thread by: Jennifer Lee | last post Nov 12 '05 by: Joe Conway
Hi there, I have a database where I'm given data in an MSAccess table which I then need to move into the appropriate table in my postgresql database (version 7.3.4). There are a couple of fields which I am trying to parse. The most complicated is a plant pedigree field and looks something like Parent1*Parent2 or
1
8,874
thread by: Clive Page | last post Nov 12 '05 by: Joe Conway
What I'd like to do is use dblink to extract a few rows from a remote database and manipulate these within a function in pl/pgsql. Something like this: CREATE OR REPLACE FUNCTION find() RETURNS INTEGER AS ' DECLARE count INTEGER: myrec RECORD; BEGIN FOR myrec IN SELECT * FROM DBLINK(''select x,y from mytab'') as
3
4,342
thread by: javier garcia - CEBAS | last post Nov 12 '05 by: Joe Conway
Hi; I've got problems with a query. I'm not sure if it is possible to do this with Postgres, although I think it should be. I had resolved these kind of queryes in MSAccess, where they are called "cross references querys" but I can't find my way in Postgres. My table 'muestras_rambla' is like: date | id_punto | muestra | flow ...

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.