Re: [SQL] [GENERAL] PL/pgSQL Function Problem

2004-09-11 Thread Doug McNaught
the inquirer <[EMAIL PROTECTED]> writes: > ERROR: syntax error at or near "$1" at character 14 > CONTEXT: PL/pgSQL function "create_author" line 7 at > SQL statement PL/pgSQL errors are sometimes obscure. I'll try to comment on what looks wrong to me... > CREATE OR REPLACE FUNCTION create_autho

Re: [SQL] [HACKERS] Index of a table is not used (in any case)

2001-10-23 Thread Doug McNaught
Reiner Dassing <[EMAIL PROTECTED]> writes: > Hello PostgreSQl Users! > > PostSQL V 7.1.1: > > I have defined a table and the necessary indices. > But the index is not used in every SELECT. (Therefore, the selects are > *very* slow, due to seq scan on > 20 million entries, which is a test setup

Re: [SQL] Index of a table is not used (in any case)

2001-10-23 Thread Doug McNaught
Reiner Dassing <[EMAIL PROTECTED]> writes: > I would like to mention first, that I will use the [SQL] list for my > answers, > regarding the notice of Josh Berkus. > > Q: "did you use VACUUM ANALYZE"? > A: This table was a test bed, just using INSERTS without ANY deletes or > updates You still