Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-docs by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group