public inbox for [email protected]  
help / color / mirror / Atom feed
From: Alvaro Herrera <[email protected]>
To: Halley Pacheco de Oliveira <[email protected]>
Cc: [email protected]
Subject: Re: current_schemas()
Date: Tue, 5 Jul 2005 10:06:38 -0400
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>

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



view thread (4+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re: current_schemas()
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox