Re: Sequences Question - Mailing list pgsql-novice

From Josh Berkus
Subject Re: Sequences Question
Date
Msg-id web-1801885@davinci.ethosmedia.com
Whole thread Raw
In response to Sequences Question  ("Jonathon Batson" <jonathon@octahedron.com.au>)
List pgsql-novice
Jonathon,

> 1> the seq is definately there
> 2> syntax is a question??
> so I also tried removing the " " around both instances of the
> sequence
> name
> and received the same error.  Also tried removing all quotes but then
> a
> parse error occurs.

Real simple ... within a function, you need to use a
double-single-quote, '' , rather than a double-quote ".

PostgreSQL only uses double-quotes for "quoted identifiers", that is
database object names which are not allowed, such as "Table One" and
"1st_try".  All other quoting purposes are fulfilled by single quotes
'.

-Josh

pgsql-novice by date:

Previous
From: "Jules Alberts"
Date:
Subject: Re: Upgrading from 7.2.1 to 7.2.3 on RH7.3
Next
From: "cristi"
Date:
Subject: Practical PostgreSQL