Search Discussions
-
Postgres kills a transaction when an error happens. This is a pain; it assumes that all SQL errors are unexpected and fatal to the transaction. There's a very simple case where it's not: UNIQUE ...
Glenn Maynard
Jul 23, 2009 at 5:06 am
Jul 27, 2009 at 12:40 pm -
One of our programmers has come to me with a problem. On 3 new Centos 5.3 servers running Postgres 8.2.13 query's are taking 3500ms-5000ms to complete, where the same query on an older server (same ...
Jacob
Jul 7, 2009 at 11:06 pm
Jul 9, 2009 at 6:44 pm -
I have a problem where I want to tweak a simple select in an "unobtrusive way". Imagine I have the following select statement: "SELECT name FROM customer LIMIT 1" and I get a normal result set from ...
Axe
Jul 28, 2009 at 9:18 pm
Aug 3, 2009 at 11:19 am -
Hi, The source select counts log-events per user. All is well when a user has at least one event per log_type in the log within a given timespan. If one log_type is missing COUNT() has nothing to ...
Andreas
Jul 23, 2009 at 5:01 am
Jul 25, 2009 at 8:46 pm -
I have the following senario. I have a tracking system. The system will record the status of an object regularly, all the status records are stored in one table. And it will keep a history of maximum ...
Wkipjohn
Jul 30, 2009 at 2:49 am
Jul 31, 2009 at 3:50 pm -
Good morning, I have a currency table (code, description). Example values: ADF | Andorran Franc ... ... ANG | NL Antillian Guilder AON | Angolan New Kwanza AUD | Australian Dollar AWG | Aruban Florin ...
Emi Lu
Jul 30, 2009 at 7:51 pm
Jul 31, 2009 at 2:10 pm -
Hi, I'm playing with the new "WITH RECURSIVE" feature of 8.4. I'm trying to figure out how to use it with trees. Here is the test code I use: --------------------------------------------------------- ...
Philippe Lang
Jul 10, 2009 at 9:46 am
Jul 10, 2009 at 1:20 pm -
Dear anyone, I have the following query: select v.id, array_to_string(array_accum(s.name),', ') as sector , array_to_string(array_accum(p.name),', ') as provincie from tblvacature v, tblaccount a , ...
David Weilers
Jul 22, 2009 at 4:22 pm
Jul 23, 2009 at 8:05 am -
within a trigger need to know if the UPDATE statement set a column. the column might be set to the old value or a different value. (want to make sure the app is sending all necessary values) thanks
Chester c young
Jul 20, 2009 at 1:19 pm
Jul 23, 2009 at 1:43 am -
Is there a difference in the order of execution between an ascii dump and one using the "custom" format? Or any difference in the general operation? I need to know if I can rely on the ascii version ...
Rob Sargent
Jul 21, 2009 at 4:27 pm
Jul 21, 2009 at 5:29 pm -
Good morning, I googled to find that "on commit drop" does not support: (a) create temp table as select * from table1 where 1< 2; http://archives.postgresql.org/pgsql-sql/2005-09/msg00153.php If ...
Emi Lu
Jul 14, 2009 at 4:30 pm
Jul 14, 2009 at 6:52 pm -
hi folks i have the following: select o_ord_date as o_date, count(o_id) as orders from orders where o_de_id in (5,6) and o_ord_date CURRENT_DATE-'1 month'::interval group by o_ord_date order by ...
Gary Stainburn
Jul 13, 2009 at 11:15 am
Jul 13, 2009 at 2:02 pm -
I know, I know, PostgreSQL has Booleans that work very nicely. Unfortunately, I have to create a schema that will work on Oracle as well as PostgreSQL, by which I mean that a single set of Java/JDBC ...
Peter Headland
Jul 7, 2009 at 1:23 am
Jul 7, 2009 at 9:27 am -
Hi! Where are stored the sequence information? How I can query the properties of a sequence like increment, max/min value, cache? I'm looking for a table like user_sequences in Oracle, where I can ...
Andre Rothe
Jul 3, 2009 at 1:12 pm
Jul 4, 2009 at 9:12 pm -
hi, i have to create a aggregate function which evaluates a maximum text value but with some conditions i have to take care of. is there a way to access a value set of each group? e.g.: customer ; ...
Jasmin Dizdarevic
Jul 2, 2009 at 2:48 pm
Jul 3, 2009 at 7:14 am -
hello list, i have some problems with an sql-statement which runs on oracle but not on postgresql (i want update only if result of SELECT is not empty, the SELECT-queries are identical): UPDATE ...
Gau, Hans-Jürgen
Jul 28, 2009 at 10:28 am
Jul 29, 2009 at 1:44 pm -
The Subject: is somewhat imprecise, but here's what I'm trying to do. For some reason, my brain is locking up over it. I'm moving a 7.2 (yes) database to 8.4. In the table in question, the structure ...
Christophe
Jul 17, 2009 at 3:14 am
Jul 17, 2009 at 3:33 pm -
hi, can i use savepoints to realize something like "on error resume next"? i've got the following situation: begin; 1. create view user001.accounts as select * from base.accounts; 2. grant select on ...
Jasmin Dizdarevic
Jul 31, 2009 at 3:24 pm
Jul 31, 2009 at 6:52 pm -
Sorry, it's a lapse by copying and simplification the original version. that is correct: UPDATE table1 t1 SET (t1.id) = (SELECT t3.id FROM table2 t2,table3 t3, table1 t1 WHERE t3.field = t2.field AND ...
Gau, Hans-Jürgen
Jul 29, 2009 at 9:48 am
Jul 29, 2009 at 11:05 am -
Hi, I made up a query to make a count for each item for each month/year: SELECT"Artnr_ID", to_char("Date_plan","YYYY") AS "Jaar", to_char("Date_plan","MM") AS "Maand", Count("tblArtnrs"."Artikelnr") ...
Bartjoosen
Jul 23, 2009 at 9:59 am
Jul 24, 2009 at 11:14 pm -
is there a way for COPY FROM to ignore unused columns in CSV? in other words, if table t1 has columns c1, c2, and if csv has columns c1, c3, c2, could I do something like COPY t1( c1, null, c2 ) FROM ...
Chester c young
Jul 20, 2009 at 1:23 pm
Jul 21, 2009 at 12:31 am -
Hi all, how can I define a column of timestamp with timezone type...with a default value? Thanks
Gianvito Pio
Jul 18, 2009 at 8:20 am
Jul 19, 2009 at 1:00 pm -
I am new to Postgresql and am trying to write a function which will do a search and return the first page of results along with the total number of matches. How can I make my function return a cursor ...
Surajit Bhattacharjee
Jul 13, 2009 at 3:33 am
Jul 14, 2009 at 4:18 pm -
Hi list, I was wondering if it was possible for a field in SQL query to return NULL if latter value is exactly the same ? - for given ORDER BY clause, I guess. For example, query returns: xxyy 1 4 ...
Marcin Krawczyk
Jul 10, 2009 at 7:23 am
Jul 10, 2009 at 7:46 am -
Hi all. Take this example from src/test/regress/sql/with.sql: WITH RECURSIVE subdepartment(level, id, parent_department, name) AS ( -- non recursive term SELECT 1, * FROM department WHERE name = 'A' ...
Andreas Joseph Krogh
Jul 7, 2009 at 1:44 am
Jul 7, 2009 at 2:06 am -
Hi I am running the following query again a partitioned table in 8.2.7. It does index scans which is unexpected as there are indexes for the log_date column. min(log_date) from data.table "Aggregate ...
Tim Haak
Jul 1, 2009 at 5:16 pm
Jul 2, 2009 at 9:31 am -
Hi, how can I fetch multiple rows into one text-field? I need the contents of some log-infos condensed into a single text to show in a report. There is a log with a single record per event. The log ...
Andreas
Jul 31, 2009 at 8:03 pm
Jul 31, 2009 at 11:30 pm -
hi, I have table CREATE TABLE table ( id integer NOT NULL, timest timestamp with time zone NOT NULL, db_time timestamp with time zone NOT NULL DEFAULT now(), "values" text[], CONSTRAINT table_pkey ...
Heigo Niilop
Jul 30, 2009 at 9:38 am
Jul 31, 2009 at 12:48 am -
Hello, I'm having a problem using foreign keys, or at least in a way i find good. Basicly I have a table I wish to use as a foreign key with lookup "id" and "code", like: 1,a 1,b 1,c 2,a 2,d I have ...
Kjell Rune Skaaraas
Jul 29, 2009 at 8:23 pm
Jul 30, 2009 at 3:35 pm -
Hi, I've a big/complex database (Adempiere - www.adempiere.org ) where I'd like to delete some rows from some tables (delete a client and its data from the ERP database). All tables are in one schema ...
Akos Gabriel
Jul 28, 2009 at 6:28 pm
Jul 28, 2009 at 8:09 pm -
I am parsing a map file and storing the hi, mid and low byte values of symbol addresses in a comma separated value (.csv) file. I am then importing this data into a PostgreSQL database with the copy ...
JJ
Jul 20, 2009 at 8:16 pm
Jul 21, 2009 at 11:33 am -
Hello, I have 3 tables: persons, operators and persons_position. This is a semplified examples of their structures: CREATE TABLE persons (id varchar NOT NULL, CONSTRAINT "PK_Persons" PRIMARY ...
Gianvito Pio
Jul 18, 2009 at 5:09 pm
Jul 20, 2009 at 1:33 pm -
Hi, how would I update a table within a join in a more efficient way? E.g. the folowing case: table_a holds abstract elements. One column represents "priority" which can be based on information of ...
Andreas
Jul 10, 2009 at 8:14 am
Jul 10, 2009 at 8:22 am -
I have to restructure some tables, coalescing common elements from three tables (sub-classes) into a single table (super-class). Each source table has a text field which actually gets stuffed with a ...
Rob Sargent
Jul 8, 2009 at 9:19 pm
Jul 9, 2009 at 8:09 am -
I've seen this asked in the archives, but there was never any answer. Supposed I have this table: create temp table tempa (ids int[]); insert into tempa SELECT ARRAY[1 , 2, 3]; Now how do I get ...
Joseph S
Jul 9, 2009 at 1:43 am
Jul 9, 2009 at 1:59 am -
hi, I have table CREATE TABLE table ( id integer NOT NULL, timest timestamp with time zone NOT NULL, db_time timestamp with time zone NOT NULL DEFAULT now(), "values" text[], CONSTRAINT table_pkey ...
Heigo Niilop
Jul 30, 2009 at 9:27 am
Jul 30, 2009 at 9:27 am -
it runs without alias t1. before fieldname id after SET, so: UPDATE table1 t1 SET id = (SELECT t3.id FROM table2 t2,table3 t3, table1 t1 WHERE t3.field = t2.field AND t2.id = t1.id AND t1.id < t3.id) ...
Gau, Hans-Jürgen
Jul 29, 2009 at 4:09 pm
Jul 29, 2009 at 4:09 pm -
Hi, I'm trying to check whether a given string is part of an XPath result set. I have encountered some performance prob- lems in the process, but before I track those down further, I'd like to see if ...
Tim Landscheidt
Jul 16, 2009 at 11:40 pm
Jul 16, 2009 at 11:40 pm -
Hi, I have been developing in postgresql for a very short time. I am currently having problems that I believe can be resolved with the right query structure but as of yet have not been able to figure ...
Tamayo, Damian-p65828
Jul 1, 2009 at 4:51 pm
Jul 1, 2009 at 4:51 pm
Group Overview
group | pgsql-sql |
categories | postgresql |
discussions | 39 |
posts | 176 |
users | 65 |
website | postgresql.org |
irc | #postgresql |
65 users for July 2009
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)