Re: current_schemas() - Mailing list pgsql-docs

From Alvaro Herrera
Subject Re: current_schemas()
Date
Msg-id 20050705140638.GE4511@alvh.no-ip.org
Whole thread Raw
In response to current_schemas()  (Halley Pacheco de Oliveira <halleypo@yahoo.com.br>)
List pgsql-docs
On Tue, Jul 05, 2005 at 08:14:40AM -0300, Halley Pacheco de Oliveira wrote:

> teste=# SELECT current_schemas();
> ERROR:  function current_schemas() does not exist
> HINT:  No function matches the given name and argument types. You may need to add explicit type
> casts.

alvherre=# select current_schemas(true);
   current_schemas
---------------------
 {pg_catalog,public}
(1 fila)

alvherre=# select current_schemas(false);
 current_schemas
-----------------
 {public}
(1 fila)


Function parameters are essential when determining if a function exists
or not.

alvherre=# \df current_schema*
                                 Listado de funciones
   Schema   |     Nombre      | Tipo de dato de salida | Tipos de datos de argumentos
------------+-----------------+------------------------+------------------------------
 pg_catalog | current_schema  | name                   |
 pg_catalog | current_schemas | name[]                 | boolean
(2 filas)

--
Alvaro Herrera (<alvherre[a]surnet.cl>)
FOO MANE PADME HUM

pgsql-docs by date:

Previous
From: Halley Pacheco de Oliveira
Date:
Subject: current_schemas()
Next
From: Halley Pacheco de Oliveira
Date:
Subject: buffer freelist