Re: current_schemas()

From: Alvaro Herrera <alvherre(at)surnet(dot)cl>
To: Halley Pacheco de Oliveira <halleypo(at)yahoo(dot)com(dot)br>
Cc: pgsql-docs(at)postgresql(dot)org
Subject: Re: current_schemas()
Date: 2005-07-05 14:06:38
Message-ID: 20050705140638.GE4511@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-docs by date

  From Date Subject
Next Message Halley Pacheco de Oliveira 2005-07-07 10:29:33 buffer freelist
Previous Message Halley Pacheco de Oliveira 2005-07-05 11:14:40 current_schemas()