David Saracini <dsaracini(at)yahoo(dot)com> writes:
> I can't seem to find any documentation on what the "$$" at the
beginning and end of a function.
Read about dollar-quoted strings here:
http://www.postgresql.org/docs/8.3/static/sql-syntax-lexical.html#SQL-SYNTAX-CONSTANTS
regards, tom lane