Re: documentation issue - extensions

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: documentation issue - extensions
Date: 2011-12-07 16:26:40
Message-ID: 19693.1323275200@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> writes:
> I am trying to create simple extension according to doc
> http://www.postgresql.org/docs/9.1/interactive/extend-extensions.html

> I have a problem with line that contains backslash statement

> -- complain if script is sourced in psql, rather than via CREATE
> EXTENSION
> \echo Use "CREATE EXTENSION pair" to load this file. \quit

> this content causes a error

> postgres=# create extension gdlib;
> ERROR: syntax error at or near "\"

Are you testing in an up-to-date server? We added the ability to handle
that post-9.1.0.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2011-12-07 16:31:21 Re: pg_restore --no-post-data and --post-data-only
Previous Message Jaime Casanova 2011-12-07 16:22:41 Re: Measuring relation free space