Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 25F2E1337990 for ; Mon, 14 Feb 2011 08:55:09 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 94691-08 for ; Mon, 14 Feb 2011 12:55:10 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by mail.postgresql.org (Postfix) with ESMTP id 7B6A2133740B for ; Mon, 14 Feb 2011 08:55:08 -0400 (AST) Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by wwwmaster.postgresql.org (8.14.3/8.14.3) with ESMTP id p1ECt8Lw000284 for ; Mon, 14 Feb 2011 12:55:08 GMT (envelope-from www@wwwmaster.postgresql.org) Received: (from www@localhost) by wwwmaster.postgresql.org (8.14.3/8.14.3/Submit) id p1ECt8VV000272; Mon, 14 Feb 2011 12:55:08 GMT (envelope-from www) Date: Mon, 14 Feb 2011 12:55:08 GMT Message-Id: <201102141255.p1ECt8VV000272@wwwmaster.postgresql.org> To: pgsql-bugs@postgresql.org Subject: BUG #5884: i cant select entire array values From: "yashar ebrahimpoor" Content-Type: text/plain; charset=utf-8 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 201102/123 X-Sequence-Number: 29395 The following bug has been logged online: Bug reference: 5884 Logged by: yashar ebrahimpoor Email address: ebrahimpoor.yashar@gmail.com PostgreSQL version: 8.4.7 Operating system: centos 5.5 Description: i cant select entire array values Details: CREATE TABLE "flight"."FlightList" ( "FlighID" INTEGER DEFAULT nextval('flight.flist_flightid_seq'::regclass) NOT NULL, "FlightDate" DATE[] NOT NULL, "FlightNum" VARCHAR[] NOT NULL, "FlightTime" TIME WITHOUT TIME ZONE[] NOT NULL, "FlightDuration" VARCHAR[] NOT NULL, CONSTRAINT "FlightList_pkey" PRIMARY KEY("FlighID") ) WITH OIDS; after create this table, insert some data INSERT INTO "flight"."FlightList"("FlightDate","FlightNum","FlightTime","FlightDuration" ) VALUES(ARRAY["date"('2011-10-10'),"date"('2011-10-15')], ARRAY['230','231'], ARRAY["time"('21:00:00'),"time"('16:25:00')], ARRAY['2:30','2:35']); now i want to execute this query: select "FlightNum[0]" FROM flight."FlightList"; return this error: ERROR: column "FlightNum[0]" does not exist LINE 1: select "FlightNum[0]" FROM flight."FlightList" please help to resolve this problem. thank you so much.