pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Need an example
5+ messages / 4 participants
[nested] [flat]

* Need an example
@ 1999-08-28 12:10  Constantin Teodorescu <teo@flex.ro>
  0 siblings, 1 reply; 5+ messages in thread

From: Constantin Teodorescu @ 1999-08-28 12:10 UTC (permalink / raw)
  To: pgsql-interfaces

Hello,

I would need an example of user defined function written in "C" that
will receive some parameters (two or three), that will search some
tables and make some calculations and that will return a value (a text,
a float8 value).

I tried to dig on examples in contrib directory but without success.

Thanks in advance,
-- 
Constantin Teodorescu
FLEX Consulting Braila, ROMANIA



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* [INTERFACE] Need an example
@ 1999-08-30 15:44  Adolfo Diaz <adiaz@vega.inf.cu>
  parent: Constantin Teodorescu <teo@flex.ro>
  0 siblings, 1 reply; 5+ messages in thread

From: Adolfo Diaz @ 1999-08-30 15:44 UTC (permalink / raw)
  To: pgsql-interfaces


 Hello,
 
 I would need an example of accessing a postgress database using
JavaScript.
 
 Thanks in advance,
 -- 
 Adolfo Diaz
 
> ************
> 




^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* RE: [INTERFACES] [INTERFACE] Need an example
@ 1999-08-31 16:18  Jackson, DeJuan <djackson@cpsgroup.com>
  0 siblings, 0 replies; 5+ messages in thread

From: Jackson, DeJuan @ 1999-08-31 16:18 UTC (permalink / raw)
  To: Adolfo Diaz <adiaz@vega.inf.cu>; pgsql-interfaces

I'm wouldn't think it's possible.  And if it is I wouldn't think it is
useful.  What exactly are you trying to accomplish?
	DEJ

> -----Original Message-----
>  Hello,
>  
>  I would need an example of accessing a postgress database using
> JavaScript.
>  
>  Thanks in advance,
>  -- 
>  Adolfo Diaz
> 



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: [INTERFACES] [INTERFACE] Need an example
@ 1999-08-31 19:39  Peter Mount <peter@retep.org.uk>
  parent: Adolfo Diaz <adiaz@vega.inf.cu>
  0 siblings, 0 replies; 5+ messages in thread

From: Peter Mount @ 1999-08-31 19:39 UTC (permalink / raw)
  To: Adolfo Diaz <adiaz@vega.inf.cu>; pgsql-interfaces

On Mon, 30 Aug 1999, Adolfo Diaz wrote:
> Hello,
>  
>  I would need an example of accessing a postgress database using
> JavaScript.

I'm not sure if JavaScript can, as it runs within the browser.

I hope you are not confusing Java and Javascript, as the JDBC driver is just
for Java.

Peter

--
Peter T Mount      peter@retep.org.uk                Tel +44 (0) 7990 898443
          Homepage http://www.retep.org.uk           Fax UK +44 (0) 870 0568837
   PostgreSQL JDBC http://www.retep.org.uk/postgres/     US +1 734 661 0110
Java PDF Generator http://www.retep.org.uk/pdf/      More details on the website




^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* RE: [INTERFACES] Need an example
@ 1999-09-02 17:07  Jackson, DeJuan <djackson@cpsgroup.com>
  0 siblings, 0 replies; 5+ messages in thread

From: Jackson, DeJuan @ 1999-09-02 17:07 UTC (permalink / raw)
  To: Adolfo Diaz <adiaz@vega.inf.cu>; +Cc: pgsql-interfaces


> Hello,
> 
>  The problem is the following one: I have PGSQL installed in a server RH
>  6.0. I want to build dynamic HTML that can be connected with my
>  databases. I don't have a lot of experience in this topic, but I know
>  that this can be achieved using the tools that are executed in the
>  server (CGI) or those that are executed in the browser (JavaScript or
>  VBScript). The server of Apache Web this modernized with the Services of
>  Extensions of the FrontPage 98. Therefore for the maintenance of the web
>  site the FrontPage Explorer is used. That you would recommend me for
>  this case? 
> 
>  Thanks in advance,
>  
> Adolfo Diaz
> 
	It's sounds like you're looking for an ASP type solution.  I've
never implemented ASP on a Unix platform. and I doubt it is a good idea.

	Look at http://www.php.net/  -  an amalgam of Perl, C, Java (easy
learning curve)
	PHP is a scripting language.  It compiles as an Apache module.  This
is important because it allows you to get away from the startup overhead of
CGI, while still allowing the robustness of a true language and placing the
code where it relates in the HTML if you desire.  It also has support for
native PostgreSQL API.

	Look at http://www.perl.com/  -  Perl (need I say more)
	There is also a Apache module version of Perl coupled with EmbedPerl
and you've got an in your HTML scripting language, with most of the same
strengths as PHP.  The biggest win that PHP has over Perl is a smaller
memory footprint, second would be that PHP is easier to learn, but Perl has
a very good support base (means more stuff to play with).  There's not a
support for the native PostgreSQL API but there's a pure Perl drive that has
been written and a DBI module.

	Look at http://www.zope.com/  - Python based 
	Zope also supports the native PostgreSQL API.  I haven't used it but
it might serve you purposes.

	Look at http://www.aolserver.com/  - TCL (AOL Server would replace
Apache)
	AOL Server is a threaded web server that has support for the native
PostgreSQL API.  It also has a TCL scripting.

	I'd look at those solutions, If CGI is the way you want to go do it
in Perl or C.  But I really don't think it's possible to connect to
PostgreSQL via JavaScript.  As Peter said there's big difference between
JavaScript and Java.

	Hope this helps,
		DEJ



^ permalink  raw  reply  [nested|flat] 5+ messages in thread


end of thread, other threads:[~1999-09-02 17:07 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
1999-08-28 12:10 Need an example Constantin Teodorescu <teo@flex.ro>
1999-08-30 15:44 ` Adolfo Diaz <adiaz@vega.inf.cu>
1999-08-31 19:39   ` Peter Mount <peter@retep.org.uk>
1999-08-31 16:18 RE: [INTERFACES] [INTERFACE] Need an example Jackson, DeJuan <djackson@cpsgroup.com>
1999-09-02 17:07 RE: [INTERFACES] Need an example Jackson, DeJuan <djackson@cpsgroup.com>

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