Search Discussions
-
Hello, What is the easiest way to migrate a complete database from one tablespace to another? ALTER DATABASE only allows to set the default tablespace, but not migrating the existing database. ...
Markus Schaber
Apr 18, 2006 at 12:05 pm
Apr 27, 2006 at 3:06 pm -
I have a table that I created that implements a linked list. I am not an expert SQL developer and was wondering if there are known ways to traverse the linked lists. Any information that can point me ...
Ray Madigan
Apr 26, 2006 at 3:53 pm
May 3, 2006 at 5:14 am -
Hi, Is there any way to solve the following issue without dropping the table? select count(*) from eventplayerleaveroom; ERROR: could not access status of transaction 3164404766 DETAIL: could not ...
Daniel Caune
Apr 24, 2006 at 6:08 pm
Apr 24, 2006 at 9:40 pm -
Hi, I'm trying to find which of the tables in pg_catalog contains the amount of references to a primary key, but I can't seem to find it. Google queries are also less than successful. Is it even ...
Wiebe Cazemier
Apr 19, 2006 at 12:27 pm
Apr 23, 2006 at 3:35 pm -
I've this table : create table test(] satu char(10), dua char(5) ); How could I get the Field length not the Data length ? Thanks, Rina --------------------------------- Love cheap thrills? Enjoy ...
Louise Catherine
Apr 20, 2006 at 3:32 am
Apr 20, 2006 at 3:44 pm -
Here is the question: I have a situation where I need to create triggers to cascade an insert operation to many tables to maintain foreign key constraints. So at a high level INSERT INTO myTable ...
Mark True
Apr 18, 2006 at 6:19 pm
Apr 18, 2006 at 7:49 pm -
Hi, i have run into the following problem. Let me describe the context first. When i joined the company(ies) i work for (a group of Shipping Mgmt/ Owenship/Agent companies), the only thing i was told ...
Achilleus Mantzios
Apr 18, 2006 at 9:36 am
Apr 18, 2006 at 10:41 am -
Dear users, I have this problem I have a table where there are 20 columns named vinc1, vinc2, vinc3, vinc4, etc.... the values contained into each column are simply 1 or 0 (each column is dichotomic) ...
Ivan marchesini
Apr 13, 2006 at 1:16 pm
Apr 15, 2006 at 9:56 am -
Hi every body, somebody can show me hot to execute a query from a shell thanks in advanced!!!
Judith
Apr 6, 2006 at 9:34 pm
Apr 6, 2006 at 10:57 pm -
I have a problem in a number of my tables. I'd like to add uniqueness constraints across multiple columns, but some of the columns are nullable. This gives me trouble since when I create a constraint ...
Phillip Tornroth
Apr 27, 2006 at 9:26 pm
Apr 30, 2006 at 7:37 am -
Hi, I just stumbled over a slightly confused error message: mydb=# select count(*),coverage_area from myschema.streets except select cd as coverage_area from countryref.disks group by ...
Markus Schaber
Apr 28, 2006 at 3:59 pm
Apr 28, 2006 at 7:02 pm -
Is there a reasonable way to extract a list of all tables which contain a specific column name from the system views on 8.1? For instance, I might want to enumerate all tables with a column named ...
Jeff Frost
Apr 21, 2006 at 4:29 pm
Apr 22, 2006 at 9:42 pm -
inventory= SELECT cabinets_name, cabinets_description FROM cabinets WHERE cabinets_datacenters = 2; cabinets_name | cabinets_description ---------------+---------------------- 548-4th-Cab2 | ...
Neil Harkins
Apr 10, 2006 at 9:37 pm
Apr 10, 2006 at 11:36 pm -
I have a need to copy/update data from one column to another, based on a join condition. Is this easy to do in pure SQL? I have google'ed without luck for a easy solution (that's not Microsoft ...
Bryce Nesbitt
Apr 7, 2006 at 8:32 pm
Apr 7, 2006 at 10:24 pm -
dear all, i want to encrypt and decrypt one of the fields in my table (i.e-passwordfield) i have searched and with the help of pgcrypto package, using function "crypt", i am able to encrypt my data, ...
AKHILESH GUPTA
Apr 6, 2006 at 8:23 am
Apr 6, 2006 at 10:24 pm -
Hello, I have a function get_xy that returns a composite type with columns "x" and "y". I would like to SELECT these as well as some data from a table, like so: SELECT ...
Michael Burke
Apr 5, 2006 at 4:27 pm
Apr 6, 2006 at 12:45 pm -
I have a table that I created that implements a linked list. I am not an expert SQL developer and was wondering if there are known ways to traverse the linked lists. The table contains many linked ...
Ray Madigan
Apr 26, 2006 at 2:52 am
May 1, 2006 at 4:49 am -
Hello! I am a longtime postgres user (started around 10 years ago), however, as for some years I've been using it mostly as administrator. Now that I have started a project and doing some SQL, I've ...
Emils
Apr 28, 2006 at 1:24 pm
Apr 29, 2006 at 8:33 am -
Hi Please spare some time to provide a solution for the described problem : I am using set returning functions to return all the records from a table named pss , But what I am getting is the first ...
Penchalaiah P.
Apr 28, 2006 at 10:35 am
Apr 28, 2006 at 3:25 pm -
I have a type, declared like this: CREATE TYPE type_a AS ( member_a varchar, member_b bool ); There is also a table: CREATE TABLE table_a ( col_a varchar, col_b bool, col_c int4 ); Now, in a ...
Mario Splivalo
Apr 25, 2006 at 12:03 pm
Apr 25, 2006 at 12:42 pm -
How do you add null values to a date array? update dattable set insDate = '{04/12/2006,'null'} <-- doesn't work update dattable set insDate= '{04/12/2006,null}' <-- doesn't work update dattable set ...
A. R. Van Hook
Apr 23, 2006 at 4:18 pm
Apr 24, 2006 at 8:55 pm -
Hi If I can not do insert/update action with on select rule, how can I execute some procedure or any sql statement on select event? WBR
Sergey Levchenko
Apr 13, 2006 at 3:46 pm
Apr 14, 2006 at 7:52 am -
Hi all, I have been working on converting our Informix DB to PostgreSQL. There are some differences with SQL syntax. I have done many outer conversion so far, but all has either one outer or simple ...
Gurkan
Apr 12, 2006 at 6:45 pm
Apr 12, 2006 at 8:01 pm -
Hello All, I have been having a really hard time trying to come up with a pl/pgsql recursive function to returns the end nodes of a tree. Here is an example table definition: CREATE TABLE ...
Mike
Apr 10, 2006 at 3:17 pm
Apr 11, 2006 at 6:00 pm -
I'm still searching through Google and whatnot, but not finding anything off the bat ... is there some way of creating a 'REVERSE INDEX' on a column in a table? For instance, when I do a 'CLUSTER' to ...
Marc G. Fournier
Apr 5, 2006 at 6:14 pm
Apr 5, 2006 at 7:14 pm -
any one can help me how to get multiple rows in postgresql using arrays in functions Thanks & Regards Penchal reddy | Software Engineer Infinite Computer Solutions | Exciting Times...Infinite ...
Penchalaiah P.
Apr 27, 2006 at 12:31 pm
Apr 27, 2006 at 4:11 pm -
Hello Willem, if its not too much data you could do an select * from table an store the result in an array of rows. Then you can iterate over it. If this is too bloated then create a cursor with: ...
Florian Reiser
Apr 20, 2006 at 12:35 pm
Apr 22, 2006 at 8:47 am -
Hi! I'm currently porting a rather complex application from PostgreSQL 7.4.x to 8.1.3 and I'm having problems with changed semantics of the trigger functionality. The problem is quite complex and I'm ...
Andreas Haumer
Apr 21, 2006 at 12:31 pm
Apr 21, 2006 at 9:32 pm -
Hi, I have, what I hope to be, a simple question about plpgsql. I have a trigger on a table right now that updates a count everytime that a new record is entered into a database (or removed). What ...
Todd Kennedy
Apr 14, 2006 at 3:38 am
Apr 14, 2006 at 9:16 am -
Hello, I wonder if there is an issue with the string 'NL'. In my application NL stands for Netherlands and is thus a country code abreviation. The query SELECT COUNT(*) FROM Table WHERE Field1 = 'NL' ...
Vellinga, Fred
Apr 4, 2006 at 8:40 am
Apr 13, 2006 at 6:44 am -
[PostgreSQL 8.1.3 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 4.0.1] I'm starting to use lots of foreign key constraints to keep my data clean. In one case, however, I need to allow null values ...
George Young
Apr 13, 2006 at 1:11 am
Apr 13, 2006 at 1:26 am -
G'day, Looking for an example showing how to return a set from either a sql function or a plpsqq function. Thanks -- Keith Hutchison http://balance-infosystems.com http://realopen.org ...
Keith Hutchison
Apr 8, 2006 at 9:10 pm
Apr 10, 2006 at 3:09 pm -
Greetings, I've encountered a strange problem. We have a PG 8.0.x database cluster (in the sense used in initdb, i.e. bunch of databases) created with UNICODE encoding, namely cs_CZ.UTF-8 locale. ...
Tomas Vondra
Apr 5, 2006 at 10:35 pm
Apr 5, 2006 at 11:03 pm -
I orginally sent this email to the [novice] list but did not get any response. I am look for help in developing a query that will return the nearest process record that was logged at or after each ...
Richard Broersma Jr
Apr 5, 2006 at 12:58 am
Apr 5, 2006 at 4:37 am -
Hi, I'm relatively stretched when it comes to SQL but I'm getting there. I have a question though: Thanks to various web sites I've succeeded in creating simple cross tables in PostgreSQL. I'm now ...
Ross Johnson
Apr 2, 2006 at 6:44 am
Apr 2, 2006 at 12:15 pm -
I'm trying to do a simple query and I'm not sure how to get it to work: SELECT SUM(x0 + y0 + z0) / SUM(x2 + y2) AS A1, SUM(x1 + y1 + z1) / SUM(x3 + y3) AS A2 FROM test Problems: 1. All variables are ...
Vince
Apr 1, 2006 at 6:10 am
Apr 1, 2006 at 6:34 am -
Hello, I use postgres 8.1 and trie to run jboss over sequoia-ha (http://sequoia.continuent.org/HomePage). But i have an problem with sequences. Sequoia claims to support for good reasons and ...
Schnabl, Sebastian
Apr 27, 2006 at 8:06 am
May 8, 2006 at 9:24 pm -
Comming back after SELECTing into usertypes, is there a nice way to insert data into table from usertype, in a nice way? For instance, I have table like this: CREATE TABLE tblA ( id int4, key ...
Mario Splivalo
Apr 27, 2006 at 4:09 pm
Apr 27, 2006 at 4:34 pm -
I've been trawling the net trying to find an answer to this, so sorry if this is a common problem - I have tried looking before posting! My problem is that when trying to SELECT a timestamp using "AT ...
John Goss
Apr 20, 2006 at 1:31 pm
Apr 20, 2006 at 4:20 pm -
Here Question : I have table A with structure : Number Character(20), Description Character(50) I want to get length of field Number (20) What is syntax sql to get length of field ? thx ...
Mariya Yuniarti
Apr 20, 2006 at 7:37 am
Apr 20, 2006 at 3:22 pm -
Hi is there a way wherein I can interface the pg_dump of PostgreSQL Server in Visual basic. I mean for example I want to backup Databases "DB1", "BD12", "DB3" using pg_dump Thank You, Ian I choose ...
Christian Paul B. Cosinas
Apr 20, 2006 at 3:33 am
Apr 20, 2006 at 4:31 am -
Is it possible to create a temporary table within a rule? I get a syntax error near 'CREATE TEMPORARY TABLE' if I try to do the following: CREATE RULE id_insert_rule AS ON INSERT TO id_insert DO ...
Ron Peterson
Apr 18, 2006 at 7:14 pm
Apr 18, 2006 at 7:53 pm -
I'm stucked.. Say a car travels from X to Y then from Y to Z (and then from Z back to X but that's not relevant here). In the table below are the timestamps for each point in various dates. The ...
Timo Tuomi
Apr 11, 2006 at 9:34 am
Apr 17, 2006 at 7:57 pm -
I have a slow sql: SELECT * FROM mytable WHERE id IN (1,3,5,7,....3k here...); mytable is about 10k rows. if don't use the "IN" clause, it will cost 0,11 second, otherwise it will cost 2.x second I ...
Favoyang
Apr 10, 2006 at 3:44 am
Apr 11, 2006 at 8:52 pm -
I have a function that returns a row from a table, e.g.: create table foo (a integer); create function f_foo (integer) returns foo language 'sql' as $foo$ select * from foo where a = $1 limit 1 $foo$ ...
Jeff Boes
Apr 7, 2006 at 9:08 pm
Apr 11, 2006 at 11:42 am -
Folks, In v8.0.3 documentation, plperl, plpython and pltcl allow declaration of variables that are global and persistent within a session. begin_quote 37.4. Global Values in PL/Perl You can use the ...
Dave Bath
Apr 11, 2006 at 2:17 am
Apr 11, 2006 at 5:15 am -
I would like to model some hierarchical (tree) data in PostgreSQL. Where can I find high quality Nested Set (or Nested Interval) source code and documentation? I know this question gets asked a lot. ...
Daniel Browning
Apr 7, 2006 at 7:28 am
Apr 10, 2006 at 1:14 am -
Hello all, Is the use of IF statement restrict to Functions and Store Procedures? I'm trying to use an IF within Select... Example: create view v1 as select c1, c2, if c3 = 52 then 0 else 1 endif as ...
Renato Cramer
Apr 5, 2006 at 4:59 pm
Apr 5, 2006 at 5:04 pm -
This is PostgreSQL 7.4 (long story). I have a table, registrars, which has, among other things, note_id integer references notes The notes table has, among other things, note_id integer default ...
Paul M Foster
Apr 3, 2006 at 3:43 am
Apr 3, 2006 at 3:57 am -
---- Marc G. Fournier Hub.Org Networking Services (http://www.hub.org) Email: scrappy@hub.org Yahoo!: yscrappy ICQ: 7615664
Marc G. Fournier
Apr 29, 2006 at 5:33 pm
Apr 29, 2006 at 5:33 pm
Group Overview
group | pgsql-sql |
categories | postgresql |
discussions | 55 |
posts | 220 |
users | 86 |
website | postgresql.org |
irc | #postgresql |
86 users for April 2006
Archives
- August 2013 (17)
- July 2013 (71)
- June 2013 (27)
- May 2013 (36)
- April 2013 (57)
- March 2013 (42)
- February 2013 (97)
- January 2013 (68)
- December 2012 (34)
- November 2012 (46)
- October 2012 (58)
- September 2012 (67)
- August 2012 (29)
- July 2012 (34)
- June 2012 (80)
- May 2012 (109)
- April 2012 (71)
- March 2012 (80)
- February 2012 (105)
- January 2012 (121)
- December 2011 (111)
- November 2011 (86)
- October 2011 (88)
- September 2011 (84)
- August 2011 (131)
- July 2011 (102)
- June 2011 (102)
- May 2011 (182)
- April 2011 (37)
- March 2011 (45)
- February 2011 (126)
- January 2011 (129)
- December 2010 (111)
- November 2010 (98)
- October 2010 (87)
- September 2010 (119)
- August 2010 (91)
- July 2010 (128)
- June 2010 (117)
- May 2010 (146)
- April 2010 (123)
- March 2010 (220)
- February 2010 (116)
- January 2010 (55)
- December 2009 (101)
- November 2009 (84)
- October 2009 (151)
- September 2009 (136)
- August 2009 (151)
- July 2009 (176)
- June 2009 (132)
- May 2009 (115)
- April 2009 (144)
- March 2009 (103)
- February 2009 (108)
- January 2009 (53)
- December 2008 (133)
- November 2008 (165)
- October 2008 (145)
- September 2008 (187)
- August 2008 (136)
- July 2008 (256)
- June 2008 (162)
- May 2008 (133)
- April 2008 (226)
- March 2008 (211)
- February 2008 (237)
- January 2008 (239)
- December 2007 (161)
- November 2007 (162)
- October 2007 (156)
- September 2007 (160)
- August 2007 (274)
- July 2007 (203)
- June 2007 (245)
- May 2007 (213)
- April 2007 (278)
- March 2007 (365)
- February 2007 (296)
- January 2007 (187)
- December 2006 (195)
- November 2006 (297)
- October 2006 (270)
- September 2006 (178)
- August 2006 (254)
- July 2006 (381)
- June 2006 (337)
- May 2006 (210)
- April 2006 (220)
- March 2006 (467)
- February 2006 (332)
- January 2006 (221)
- December 2005 (247)
- November 2005 (288)
- October 2005 (400)
- September 2005 (303)
- August 2005 (324)
- July 2005 (250)
- June 2005 (379)
- May 2005 (283)
- April 2005 (419)
- March 2005 (415)
- February 2005 (364)
- January 2005 (331)
- December 2004 (168)
- November 2004 (301)
- October 2004 (214)
- September 2004 (260)
- August 2004 (349)
- July 2004 (240)
- June 2004 (313)
- May 2004 (222)
- April 2004 (343)
- March 2004 (285)
- February 2004 (389)
- January 2004 (305)
- December 2003 (230)
- November 2003 (347)
- October 2003 (417)
- September 2003 (423)
- August 2003 (363)
- July 2003 (498)
- June 2003 (354)
- May 2003 (594)
- April 2003 (463)
- March 2003 (650)
- February 2003 (638)
- January 2003 (532)
- December 2002 (283)
- November 2002 (446)
- October 2002 (424)
- September 2002 (444)
- August 2002 (426)
- July 2002 (473)
- June 2002 (413)
- May 2002 (331)
- April 2002 (367)
- March 2002 (390)
- February 2002 (448)
- January 2002 (358)
- December 2001 (267)
- November 2001 (450)
- October 2001 (426)
- September 2001 (301)
- August 2001 (395)
- July 2001 (439)
- June 2001 (574)
- May 2001 (402)
- April 2001 (461)
- March 2001 (700)
- February 2001 (470)
- January 2001 (501)
- December 2000 (336)
- November 2000 (296)
- October 2000 (300)
- September 2000 (242)
- August 2000 (363)
- July 2000 (285)
- June 2000 (289)
- May 2000 (230)
- April 2000 (267)
- March 2000 (103)
- February 2000 (253)
- January 2000 (282)
- December 1999 (272)
- November 1999 (236)
- October 1999 (219)
- September 1999 (246)
- August 1999 (292)
- July 1999 (310)
- June 1999 (312)
- May 1999 (258)
- April 1999 (207)
- March 1999 (257)
- February 1999 (231)
- January 1999 (179)
- December 1998 (113)
- November 1998 (111)
- October 1998 (114)
- September 1998 (151)
- August 1998 (156)
- July 1998 (137)
- June 1998 (160)
- May 1998 (108)