From: | Josh Berkus <josh(at)agliodbs(dot)com> |
---|---|
To: | "Aspire Something" <aspire420(at)hotpop(dot)com>, "pgsql Sql" <pgsql-sql(at)postgresql(dot)org> |
Subject: | Re: Arrays Or Loop |
Date: | 2003-03-06 17:17:05 |
Message-ID: | 200303060917.05298.josh@agliodbs.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
Aspire,
> 2. Can we use array for the above thing as
> a. Make an array of the valid roll_numbers. such as
> ('IDX'=>'ROLL_NUMBER'........)
> b. Now select the array element by the index which will produce the
> roll_number and work on it.
> c. Array could be build by for loop
> 3. Will the array approch execute code fast. if yes can you please give me
> some refrences so that i can actually
> build one such function.
Unfortunately, the current version of PL/pgSQL have problems with array
support. So if you want to test this with arrays, you will have to use
another language, such as C or Python.
> 4. Lastly if i use views will they help in fas execution
No. If you want fast execution, try writing the procedure in C.
--
Josh Berkus
Aglio Database Solutions
San Francisco
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2003-03-06 19:53:30 | Re: Relation "pg_relcheck" |
Previous Message | Mark Mitchell | 2003-03-06 14:31:56 | Re: Cancelling Queries |