[Pgsql-ayuda] Funciones que me retorne datos a Visual Basic con ADO.-

From: Estéfano Castillo <ecastillo(at)crecic(dot)cl>
To: <pgsql-ayuda(at)tlali(dot)iztacala(dot)unam(dot)mx>
Subject: [Pgsql-ayuda] Funciones que me retorne datos a Visual Basic con ADO.-
Date: 2004-03-25 13:27:27
Message-ID: 000d01c4126c$eafccae0$4901a8c0@desarrollo.crecic.cl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

Hola muchachos, este es el primer mensaje que envío a la lista. Mi problema
es el siguiente, migré una base de datos SQL Server a Postgres y tengo una
interfaz construida en visual basic, mi problema radica en que no se como
hacer que una función creada en postgres me retorne datos para llenar un
recordset (ADO) desde visual basic. Si alguien puede enviarme un ejemplo
concreto tanto de la llamada a la función como un ejemplo de la función
creada en postgres se lo agradecería montones, de antemano muchas gracias.

Estéfano Castillo E.
Técnico Universitario en Computación e Informática
Jefe de Programación - CRECIC S.A.
Fono : (41) 240002 Anexo 724
Celular : 09-3850119
E-Mail : ecastillo(at)crecic(dot)cl

-----Mensaje original-----
De: pgsql-ayuda-bounces(at)tlali(dot)iztacala(dot)unam(dot)mx
[mailto:pgsql-ayuda-bounces(at)tlali(dot)iztacala(dot)unam(dot)mx]En nombre de
pgsql-ayuda-request(at)tlali(dot)iztacala(dot)unam(dot)mx
Enviado el: jueves, 25 de marzo de 2004 07:25
Para: pgsql-ayuda(at)tlali(dot)iztacala(dot)unam(dot)mx
Asunto: Resumen de Pgsql-ayuda, Vol 1, Envío 924

Envie los mensajes para la lista Pgsql-ayuda a
pgsql-ayuda(at)tlali(dot)iztacala(dot)unam(dot)mx

Para subscribirse o anular su subscripción a través de WEB
http://tlali.iztacala.unam.mx/cgi-bin/mailman/listinfo/pgsql-ayuda

O por correo electrónico, enviando un mensaje con el texto "help" en
el asunto (subject) o en el cuerpo a:
pgsql-ayuda-request(at)tlali(dot)iztacala(dot)unam(dot)mx

Puede contactar con el responsable de la lista escribiendo a:
pgsql-ayuda-owner(at)tlali(dot)iztacala(dot)unam(dot)mx

Si responde a algún contenido de este mensaje, por favor, edite la
linea del asunto (subject) para que el texto sea mas especifico que:
"Re: Contents of Pgsql-ayuda digest...". Ademas, por favor, incluya en
la respuesta solo aquellas partes del mensaje a las que esta
respondiendo.

Asuntos del día:

1. Re: LLamar funciones mediante visual basic y ODBC
(Carlos Castro(TEKKEN))
2. Fwd: Re: [Pgsql-ayuda] Memoria postgres (Martin Marques)
3. creacion de cubos (Ivan Chavero)
4. Re: Fwd: Re: [Pgsql-ayuda] Memoria postgres (Manuel Sugawara)
5. Changing mailling list server (Alvaro Herrera)
6. archivos de la lista (Alvaro Herrera)
7. Re: Changing mailling list server (Alvaro Herrera)
8. Re: Re: Changing mailling list server (Roberto Andrade Fonseca)
9. Re: Re: Changing mailling list server (Manuel Sugawara)
10. Re: Fwd: Re: [Pgsql-ayuda] Memoria postgres (Martin Marques)
11. Re: [pgsql-advocacy] Changing mailling list server
(Martin Marques)

----------------------------------------------------------------------

Message: 1
Date: Wed, 24 Mar 2004 14:29:08 -0500
From: "Carlos Castro\(TEKKEN\)" <carlostekken(at)hotmail(dot)com>
Subject: Re: [Pgsql-ayuda] LLamar funciones mediante visual basic y
ODBC
To: "Alvaro Herrera" <alvherre(at)dcc(dot)uchile(dot)cl>, "Marcelo Retamal
Vallejos" <mretamal(at)cmet(dot)net>
Cc: Lista Postgres <pgsql-ayuda(at)tlali(dot)iztacala(dot)unam(dot)mx>
Message-ID: <BAY17-DAV51ZU2ZZYE600000903(at)hotmail(dot)com>
Content-Type: text/plain; charset="iso-8859-1"

yo creo que el problema es DAO y no VB ya que yo hago lo mismo que tu
mediante ADO y no tengo ningun problema...

----- Original Message -----
From: "Alvaro Herrera" <alvherre(at)dcc(dot)uchile(dot)cl>
To: "Marcelo Retamal Vallejos" <mretamal(at)cmet(dot)net>
Cc: "Lista Postgres" <pgsql-ayuda(at)tlali(dot)iztacala(dot)unam(dot)mx>
Sent: Tuesday, March 23, 2004 2:53 PM
Subject: Re: [Pgsql-ayuda] LLamar funciones mediante visual basic y ODBC

> On Tue, Mar 23, 2004 at 03:22:08PM -0400, Marcelo Retamal Vallejos wrote:
> > Hola a todos: tengo una base de datos Postgresql7.3 y varias funciones
> > creadas en lenguaje PLPgsql,tengo una aplicación desarrollada en visual
> > basic que se conecta por DAO y ODBC a la base de datos. Hay una funcion
en
> > particular que devuelve un data type que he definido previamente, en la
> > consola de psql la llamo así: select * from
> > ve_tablas_discado(par1,par2,....par10);. Esta me devuele 4 datos. El
> > problema esta cuando realizo el mismo query en el VB, me reclama: "Error
de
> > sintaxis en la clausula FROM".
>
> Este es un problema de VB que se cree inteligente y quiere entender el
> SQL antes de enviarlo; el problema es que esa sintaxis (funciones en
> FROM) no la conoce.
>
> Puedes hacerlo andar creando una vista
> CREATE VIEW ve_tablas_discado_par1_par2 AS
> SELECT * FROM ve_tablas_discado(par1, par2, ...)
>
> y luego usas la vista: SELECT * FROM ve_tablas_discado_par1_par2
>
> pero claramente eso no es lo ideal (vas a tener muchas vistas ...)
> Aparte de botar VB, no se cual podria ser tu solucion.
>
> --
> Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
> "Those who use electric razors are infidels destined to burn in hell while
> we drink from rivers of beer, download free vids and mingle with naked
> well shaved babes."
(http://slashdot.org/comments.pl?sid=44793&cid=4647152)
> _______________________________________________
> Pgsql-ayuda mailing list
> Pgsql-ayuda(at)tlali(dot)iztacala(dot)unam(dot)mx
> http://tlali.iztacala.unam.mx/mailman/listinfo/pgsql-ayuda
>

------------------------------

Message: 2
Date: Wed, 24 Mar 2004 16:21:41 -0300
From: Martin Marques <martin(at)bugs(dot)unl(dot)edu(dot)ar>
Subject: Fwd: Re: [Pgsql-ayuda] Memoria postgres
To: pgsql-ayuda(at)tlali(dot)iztacala(dot)unam(dot)mx
Message-ID: <200403241621(dot)42116(dot)martin(at)bugs(dot)unl(dot)edu(dot)ar>
Content-Type: text/plain; charset="iso-8859-1"

Tiro error de relay el servidor de mail (realmente hay que sacar la lista de
ahi).
Ahi va de nuevo.

---------- Mensaje reenviado ----------

Subject: Re: [Pgsql-ayuda] Memoria postgres
Date: Mié 24 Mar 2004 10:28
From: Martin Marques <martin(at)bugs(dot)unl(dot)edu(dot)ar>
To: Julian Cardona <juliancardonam(at)yahoo(dot)com>,
pgsql-ayuda(at)tlali(dot)iztacala(dot)unam(dot)mx

El Mar 23 Mar 2004 18:48, Julian Cardona escribió:
> Hola lista, mi pregunta es la siguiente, como puedo
> asignar memoria ram exclusiva para postgres 7.2 en
> linux rh 7.3?

Modificando el parametro shared_buffers en postgresql.conf y reiniciando el
motor de la base de datos.

> Como puedo monitorear esta memoria asignada si es que
> se puede?

man ipcs

> Me pueden guiar con consejos, docume o urls?

La documentacion de PostgreSQL tiene mucha informacion sobre esto, incluso
informacion para arreglar configuraciones mal hechas.

--
10:26:01 up 15 days, 14:57, 3 users, load average: 0.37, 0.71, 0.78
-----------------------------------------------------------------
Martín Marqués | select 'mmarques' || '@' || 'unl.edu.ar'
Centro de Telematica | DBA, Programador, Administrador
Universidad Nacional
del Litoral
-----------------------------------------------------------------

-------------------------------------------------------

--
16:21:01 up 15 days, 20:52, 2 users, load average: 0.32, 0.44, 0.26
-----------------------------------------------------------------
Martín Marqués | select 'mmarques' || '@' || 'unl.edu.ar'
Centro de Telematica | DBA, Programador, Administrador
Universidad Nacional
del Litoral
-----------------------------------------------------------------

------------------------------

Message: 3
Date: Wed, 24 Mar 2004 16:42:48 -0700
From: Ivan Chavero <ichavero(at)uach(dot)mx>
Subject: [Pgsql-ayuda] creacion de cubos
To: pgsql-ayuda(at)tlali(dot)iztacala(dot)unam(dot)mx
Message-ID: <1080171768(dot)3202(dot)8(dot)camel(at)localhost>
Content-Type: text/plain; charset=ISO-8859-15

hola, alguien tiene experiencia en la implementación de cubos usando
postgres?? Tengo que hacer un desarrollo de este tipo y realmente me
servirían mucho recomendaciones y ligas a documentación (también si
saben cómo graficar estos chismes usando perl sería de mucha ayuda).

gracias.

------------------------------

Message: 4
Date: 24 Mar 2004 17:37:17 -0600
From: Manuel Sugawara <masm(at)fciencias(dot)unam(dot)mx>
Subject: Re: Fwd: Re: [Pgsql-ayuda] Memoria postgres
To: Martin Marques <martin(at)bugs(dot)unl(dot)edu(dot)ar>
Cc: pgsql-ayuda(at)tlali(dot)iztacala(dot)unam(dot)mx
Message-ID: <m3k719x1ea(dot)fsf(at)conexa(dot)fciencias(dot)unam(dot)mx>
Content-Type: text/plain; charset=iso-8859-1

Martin Marques <martin(at)bugs(dot)unl(dot)edu(dot)ar> writes:

> Tiro error de relay el servidor de mail (realmente hay que sacar la lista
de
> ahi).

umh, ¿y ya te contestaron?, tal vez es hora de disparar de nuevo.

Saludos,
Manuel.

------------------------------

Message: 5
Date: Wed, 24 Mar 2004 20:45:19 -0400
From: Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>
Subject: [Pgsql-ayuda] Changing mailling list server
To: pgsql-advocacy(at)postgresql(dot)org
Cc: scrappy(at)postgresql(dot)org, pgsql-ayuda(at)tlali(dot)iztacala(dot)unam(dot)mx
Message-ID: <20040325004519(dot)GI3952(at)dcc(dot)uchile(dot)cl>
Content-Type: text/plain; charset=iso-8859-1

(This is a repost of a mail from Martín Marqués a couple of days ago --
did anyone see it in -advocacy?)

Dear Advocacy members (and Marc ;-)):

We, at the Spanish PostgreSQL mailling list hosted at
pgsql-ayuda(at)tlali(dot)iztacala(dot)unam(dot)mx are having some problems due to lack
of administration in the list, and at the moment are debating about what
(or where) to do with the list.

One of the solutions that came upon was to migrate (pass) the mailling
list to postgresql.org (pgsql-ayuda(at)postgresql(dot)org) and so I would like
to know which is the policy about this, and if there is a chance of
hosting the list at pgsql-ayuda(at)postgresql(dot)org (maybe it should be
called pgsql-es-ayuda or just pgsql-es, to follow the convention?)

Please note that we would take care of whatever administrative tasks are
required.

Waiting for your answer,

--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"Para tener más hay que desear menos"

------------------------------

Message: 6
Date: Wed, 24 Mar 2004 20:56:18 -0400
From: Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>
Subject: [Pgsql-ayuda] archivos de la lista
To: pgsql-ayuda(at)tlali(dot)iztacala(dot)unam(dot)mx
Cc: Martin Marques <martin(at)bugs(dot)unl(dot)edu(dot)ar>
Message-ID: <20040325005618(dot)GJ3952(at)dcc(dot)uchile(dot)cl>
Content-Type: text/plain; charset=us-ascii

Hola,

Alguien dijo hace un par de dias que habia una URL para llegar al mbox
con los archivos de la lista. Cual era? No tengo el mail, y no puedo
revisar los archivos via la pagina porque el link es incorrecto :-(

--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"El Maquinismo fue proscrito so pena de cosquilleo hasta la muerte"
(Ijon Tichy en Viajes, Stanislaw Lem)

------------------------------

Message: 7
Date: Wed, 24 Mar 2004 20:58:08 -0400
From: Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>
Subject: [Pgsql-ayuda] Re: Changing mailling list server
To: "Marc G. Fournier" <scrappy(at)postgresql(dot)org>
Cc: pgsql-advocacy(at)postgresql(dot)org, pgsql-ayuda(at)tlali(dot)iztacala(dot)unam(dot)mx
Message-ID: <20040325005808(dot)GK3952(at)dcc(dot)uchile(dot)cl>
Content-Type: text/plain; charset=iso-8859-1

On Wed, Mar 24, 2004 at 08:48:11PM -0400, Marc G. Fournier wrote:
>
> The answer I had sent back a little while back was that this was
> definitely doable ... once a decision was made, just let me konw and I can
> get it setup ... I also need to know who would be listed as the list
> owner, for moderation purposes, as I can't read Spanish *yet* (next years
> project)

Cool, please list me and Martin as owners:

Martin Marques <martin(at)bugs(dot)unl(dot)edu(dot)ar>
Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>

Is there some way we could automatically import the archives from the
old list? Has the list owner a mechanism to insert a whole mbox?

Thanks a lot,

> On Wed, 24 Mar 2004, Alvaro Herrera wrote:
>
> > We, at the Spanish PostgreSQL mailling list hosted at
> > pgsql-ayuda(at)tlali(dot)iztacala(dot)unam(dot)mx are having some problems due to lack
> > of administration in the list, and at the moment are debating about what
> > (or where) to do with the list.

--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
Tulio: oh, para qué servirá este boton, Juan Carlos?
Policarpo: No, aléjense, no toquen la consola!
Juan Carlos: Lo apretaré una y otra vez.

------------------------------

Message: 8
Date: Wed, 24 Mar 2004 19:15:32 -0600
From: Roberto Andrade Fonseca <randrade(at)abl(dot)com(dot)mx>
Subject: Re: [Pgsql-ayuda] Re: Changing mailling list server
To: pgsql-ayuda(at)tlali(dot)iztacala(dot)unam(dot)mx, csvm(at)campus(dot)iztacala(dot)unam(dot)mx
Message-ID: <1080177332(dot)3834(dot)27(dot)camel(at)localhost(dot)localdomain>
Content-Type: text/plain; charset=ISO-8859-1

Hi Alvaro:
El mié, 24-03-2004 a las 18:58, Alvaro Herrera escribió:
> On Wed, Mar 24, 2004 at 08:48:11PM -0400, Marc G. Fournier wrote:
> >
> > The answer I had sent back a little while back was that this was
> > definitely doable ... once a decision was made, just let me konw and I
can
> > get it setup ... I also need to know who would be listed as the list
> > owner, for moderation purposes, as I can't read Spanish *yet* (next
years
> > project)
>
> Cool, please list me and Martin as owners:
>
> Martin Marques <martin(at)bugs(dot)unl(dot)edu(dot)ar>
> Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>
>
> Is there some way we could automatically import the archives from the
> old list? Has the list owner a mechanism to insert a whole mbox?
>
> Thanks a lot,
>
> > On Wed, 24 Mar 2004, Alvaro Herrera wrote:
> >
> > > We, at the Spanish PostgreSQL mailling list hosted at
> > > pgsql-ayuda(at)tlali(dot)iztacala(dot)unam(dot)mx are having some problems due to
lack
> > > of administration in the list, and at the moment are debating about
what
> > > (or where) to do with the list.

El administrador (o el jefe de él) es:
M en C. César Sánchez Vázquez del Mercado
csvm(at)campus(dot)iztacala(dot)unam(dot)mx

Ya hablé con él y no tiene inconveniente en entregar los archivos de la
lista.

Por favor escríbele para arreglar el traspaso.

Si es posible, me gustaría que en algún lugar del nuevo sitio quedara
constancia del hecho de que yo inicié esta lista, en la UNAM, en México,
circa 1966.

Saludos,

Roberto Andrade

------------------------------

Message: 9
Date: 24 Mar 2004 21:36:34 -0600
From: Manuel Sugawara <masm(at)fciencias(dot)unam(dot)mx>
Subject: Re: [Pgsql-ayuda] Re: Changing mailling list server
To: Roberto Andrade Fonseca <randrade(at)abl(dot)com(dot)mx>
Cc: csvm(at)campus(dot)iztacala(dot)unam(dot)mx, pgsql-ayuda(at)tlali(dot)iztacala(dot)unam(dot)mx
Message-ID: <m3k719zjgd(dot)fsf(at)conexa(dot)fciencias(dot)unam(dot)mx>
Content-Type: text/plain; charset=iso-8859-1

Roberto Andrade Fonseca <randrade(at)abl(dot)com(dot)mx> writes:

> Si es posible, me gustaría que en algún lugar del nuevo sitio quedara
> constancia del hecho de que yo inicié esta lista, en la UNAM, en México,
> circa 1966.

¡órale!, eso si que es sorprendente, ¡aún antes de que se creara
PostgreSQL!,

Ok, supongo que quisiste decir 1996?

Saludos,
Manuel.

------------------------------

Message: 10
Date: Thu, 25 Mar 2004 08:26:22 -0300
From: Martin Marques <martin(at)bugs(dot)unl(dot)edu(dot)ar>
Subject: Re: Fwd: Re: [Pgsql-ayuda] Memoria postgres
To: Manuel Sugawara <masm(at)fciencias(dot)unam(dot)mx>
Cc: Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>,
pgsql-ayuda(at)tlali(dot)iztacala(dot)unam(dot)mx
Message-ID: <200403250826(dot)22412(dot)martin(at)bugs(dot)unl(dot)edu(dot)ar>
Content-Type: text/plain; charset="iso-8859-1"

El Mié 24 Mar 2004 20:37, Manuel Sugawara escribió:
> Martin Marques <martin(at)bugs(dot)unl(dot)edu(dot)ar> writes:
> > Tiro error de relay el servidor de mail (realmente hay que sacar la
lista
> > de ahi).
>
> umh, ¿y ya te contestaron?, tal vez es hora de disparar de nuevo.

Ayer estuve por el IM hablando con Bruce Momjian sobre esto y el cree que
Marc
"Scrappy" Fournier no va a tener problemas. Mas aun, Marc ha ofrecido muchas
veces hacer hosting de proyectos libres relacionados con PG. Asi que a mi
modo de verlo, hay buenas posibilidades de poder tener
pgsql-ayuda(at)postgresql(dot)org

Hoy voy a tratar de molestarlo de nuevo a Marc (lo mas probable es que se le
esten pasando los mails).

--
08:23:01 up 16 days, 12:54, 2 users, load average: 1.01, 0.85, 0.67
-----------------------------------------------------------------
Martín Marqués | select 'mmarques' || '@' || 'unl.edu.ar'
Centro de Telematica | DBA, Programador, Administrador
Universidad Nacional
del Litoral
-----------------------------------------------------------------

------------------------------

Message: 11
Date: Thu, 25 Mar 2004 08:27:58 -0300
From: Martin Marques <martin(at)bugs(dot)unl(dot)edu(dot)ar>
Subject: [Pgsql-ayuda] Re: [pgsql-advocacy] Changing mailling list
server
To: Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>
Cc: pgsql-advocacy(at)postgresql(dot)org, pgsql-ayuda(at)tlali(dot)iztacala(dot)unam(dot)mx
Message-ID: <200403250827(dot)58665(dot)martin(at)bugs(dot)unl(dot)edu(dot)ar>
Content-Type: text/plain; charset="iso-8859-1"

Nos tiro la pelota. Ahora nos toca jugar a nosotros.
Que hacemos?

El Mié 24 Mar 2004 21:48, Marc G. Fournier escribió:
> The answer I had sent back a little while back was that this was
> definitely doable ... once a decision was made, just let me konw and I can
> get it setup ... I also need to know who would be listed as the list
> owner, for moderation purposes, as I can't read Spanish *yet* (next years
> project)
>
> On Wed, 24 Mar 2004, Alvaro Herrera wrote:
> > (This is a repost of a mail from Martín Marqués a couple of days ago --
> > did anyone see it in -advocacy?)
> >
> > Dear Advocacy members (and Marc ;-)):
> >
> > We, at the Spanish PostgreSQL mailling list hosted at
> > pgsql-ayuda(at)tlali(dot)iztacala(dot)unam(dot)mx are having some problems due to lack
> > of administration in the list, and at the moment are debating about what
> > (or where) to do with the list.
> >
> > One of the solutions that came upon was to migrate (pass) the mailling
> > list to postgresql.org (pgsql-ayuda(at)postgresql(dot)org) and so I would like
> > to know which is the policy about this, and if there is a chance of
> > hosting the list at pgsql-ayuda(at)postgresql(dot)org (maybe it should be
> > called pgsql-es-ayuda or just pgsql-es, to follow the convention?)
> >
> > Please note that we would take care of whatever administrative tasks are
> > required.
> >
> > Waiting for your answer,
> >
> > --
> > Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
> > "Para tener más hay que desear menos"
>
> ----
> Marc G. Fournier Hub.Org Networking Services
(http://www.hub.org)
> Email: scrappy(at)hub(dot)org Yahoo!: yscrappy ICQ:
7615664
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)

--
08:27:01 up 16 days, 12:58, 2 users, load average: 0.34, 0.69, 0.64
-----------------------------------------------------------------
Martín Marqués | select 'mmarques' || '@' || 'unl.edu.ar'
Centro de Telematica | DBA, Programador, Administrador
Universidad Nacional
del Litoral
-----------------------------------------------------------------

------------------------------

_______________________________________________
Pgsql-ayuda mailing list
Pgsql-ayuda(at)tlali(dot)iztacala(dot)unam(dot)mx
http://tlali.iztacala.unam.mx/cgi-bin/mailman/listinfo/pgsql-ayuda

Fin de Resumen de Pgsql-ayuda, Vol 1, Envío 924
***********************************************

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Edwin Quijada 2004-03-25 15:03:20 RE: [Pgsql-ayuda] creacion de cubos
Previous Message Martin Marques 2004-03-25 12:40:59 Re: Changing mailling list server