Re: [GENERAL] Creating index on concatenated char columns fails is Postgres 9 (regression)

2014-10-02 Thread Adrian Klaver
On 10/02/2014 01:49 PM, Andrus wrote: Steps to reproduce: Run commands create temp table test (kuupaev date, kellaaeg char(5) ) on commit drop; create index test on test ((kuupaev||kellaaeg)); in "PostgreSQL 9.3.4, compiled by Visual C++ build 1600, 32-bit" Observed result: E

[GENERAL] Creating index on concatenated char columns fails is Postgres 9 (regression)

2014-10-02 Thread Andrus
Steps to reproduce: Run commands create temp table test (kuupaev date, kellaaeg char(5) ) on commit drop; create index test on test ((kuupaev||kellaaeg)); in "PostgreSQL 9.3.4, compiled by Visual C++ build 1600, 32-bit" Observed result: ERROR: functions in index expres

Re: [GENERAL] Creating index for convert text to integer

2009-08-26 Thread Sam Mason
On Wed, Aug 26, 2009 at 07:13:41AM -0700, xaviergxf wrote: > How can i create a index to index all the fields that has the type > INTEGER, in the following table: > > create type properties_types as enum('INTEGER', 'STRING', 'FLOAT'); > > create table properties_types( >value text NOT NULL,

[GENERAL] Creating index for convert text to integer

2009-08-26 Thread xaviergxf
Hi, How can i create a index to index all the fields that has the type INTEGER, in the following table: create type properties_types as enum('INTEGER', 'STRING', 'FLOAT'); create table properties_types( value text NOT NULL, value_type properties_types NOT NULL ); insert into properties_

Re: [GENERAL] Creating Index

2007-04-22 Thread Tom Lane
"carter ck" <[EMAIL PROTECTED]> writes: > I am wonderring the differences between creating an index on several columns > of a table and an index on each column of a table. > For example, following is my select query: > select * from my_table where myrowid='abc' and mytask='TEst 1' and > myday!=

[GENERAL] Creating Index

2007-04-22 Thread carter ck
Hi all, I am wonderring the differences between creating an index on several columns of a table and an index on each column of a table. For example, following is my select query: select * from my_table where myrowid='abc' and mytask='TEst 1' and myday!='holiday'; Which of the following is

Re: [GENERAL] Creating index on a view?

2004-11-24 Thread Richard Huxton
Net Virtual Mailing Lists wrote: CREATE TABLE table2 ( table2_id INTEGER, table2_desc VARCHAR, table3_id INTEGER[] ); CREATE TABLE table3 ( table3_id INTEGER, table3_desc VARCHAR ); What I need is an "indirect index" (for lack of a better phrase) that allows me to do: SELECT b.table3_id

Re: [GENERAL] Creating index on a view?

2004-11-24 Thread Net Virtual Mailing Lists
The problem in my case is that the view does a join between table2 and table3 and I want to do a select on a value from table2. So at the point the expansion happens, I am actually doing a query on a column that does not exist in table3 - it only exists in table2. Given what you said, perhaps a b

Re: [GENERAL] Creating index on a view?

2004-11-24 Thread Patrick Fiche
4 novembre 2004 11:15 To: Net Virtual Mailing Lists Cc: [EMAIL PROTECTED] Subject: Re: [GENERAL] Creating index on a view? Net Virtual Mailing Lists wrote: > My question is regarding creating an index on a view, or perhaps > another way to accomplish this. Views are just macro expansi

Re: [GENERAL] Creating index on a view?

2004-11-24 Thread Peter Eisentraut
Net Virtual Mailing Lists wrote: > My question is regarding creating an index on a view, or perhaps > another way to accomplish this. Views are just macro expansions of queries (in a manner of speaking). To make queries on views use indexes, you create the indexes on the underlying tables in th

[GENERAL] Creating index on a view?

2004-11-24 Thread Net Virtual Mailing Lists
Hello, First, let me apologize for my flurry of emails as of late... I'm working on something which seems particularly difficult (at least to me)... My question is regarding creating an index on a view, or perhaps another way to accomplish this. For example: CREATE TABLE table1 ( table1_id S