pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Re: newbie question: . . .
8+ messages / 6 participants
[nested] [flat]

* Re: newbie question: . . .
@ 2001-09-17 19:18  Russ McBride <Russ@psyex.com>
  0 siblings, 0 replies; 8+ messages in thread

From: Russ McBride @ 2001-09-17 19:18 UTC (permalink / raw)
  To: pgsql-jdbc

Nick,

Thanks.  That appears to have done the trick.  At the next step, I'm 
getting a weir error from within the Webobjects EOModeler that says:

NSCFDictionary.setObject:ForKey:attempt to insert nil key

This might be a question better suited for the Webobjects folks though  . . .


Russ

--------------
Russ-



> My connection window gives me the option of specifying the name of my
> driver.  When I type in
>
> postgresql.jar
>

I'm not sure if this will solve it, but I'd guess that when your application
asks for the name of the drivers, it is looking for the class, not the jar
file, so your response would be: org.postgresql.Driver

-Nick



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

* Newbie question
@ 2003-12-20 19:06  Christian Rengstl <tex79@web.de>
  0 siblings, 1 reply; 8+ messages in thread

From: Christian Rengstl @ 2003-12-20 19:06 UTC (permalink / raw)
  To: pgsql-jdbc

Hello everyone,

I am quite new to Postgresql and JDBC and started to make my first 
application to use postgresql. And here comes my doubt/question: is it 
normal that it takes about 1 - 2 minutes to connect to the database? In 
my case it actually does take that long, but I thought maybe I made 
something wrong and you guys could give me a hint...

Thanks

Chris




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

* Re: Newbie question
@ 2003-12-22 19:33  Dave Cramer <pg@fastcrypt.com>
  parent: Christian Rengstl <tex79@web.de>
  0 siblings, 1 reply; 8+ messages in thread

From: Dave Cramer @ 2003-12-22 19:33 UTC (permalink / raw)
  To: Christian Rengstl <tex79@web.de>; +Cc: pgsql-jdbc

Chris,

No, it isn't normal, but with the information you have provided it will
be difficult to analyze the problem.

Can you send us the operating systems involved, firewalls, etc.

Dave
On Sat, 2003-12-20 at 14:06, Christian Rengstl wrote:
> Hello everyone,
> 
> I am quite new to Postgresql and JDBC and started to make my first 
> application to use postgresql. And here comes my doubt/question: is it 
> normal that it takes about 1 - 2 minutes to connect to the database? In 
> my case it actually does take that long, but I thought maybe I made 
> something wrong and you guys could give me a hint...
> 
> Thanks
> 
> Chris
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
> 
>                http://www.postgresql.org/docs/faqs/FAQ.html
> 
> 




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

* Re: Newbie question
@ 2003-12-22 20:19  Christian Rengstl <tex79@web.de>
  parent: Dave Cramer <pg@fastcrypt.com>
  0 siblings, 1 reply; 8+ messages in thread

From: Christian Rengstl @ 2003-12-22 20:19 UTC (permalink / raw)
  To: pgsql-jdbc

Hi,

my operating system is SuSE Linux 9.0 with Java 1.4.2, postgresql 7.3.4 
and the jdbc driver is pg73jdbc3.jar. I don't have a firewall set up, so 
there shouldn't be any problem with that. I have the driver in the 
lib/ext directory of my Java VM.

Chris

>Chris,
>
>No, it isn't normal, but with the information you have provided it will
>be difficult to analyze the problem.
>
>Can you send us the operating systems involved, firewalls, etc.
>
>Dave
>On Sat, 2003-12-20 at 14:06, Christian Rengstl wrote:
>  
>
>>Hello everyone,
>>
>>I am quite new to Postgresql and JDBC and started to make my first 
>>application to use postgresql. And here comes my doubt/question: is it 
>>normal that it takes about 1 - 2 minutes to connect to the database? In 
>>my case it actually does take that long, but I thought maybe I made 
>>something wrong and you guys could give me a hint...
>>
>>Thanks
>>
>>Chris
>>
>>
>>---------------------------(end of broadcast)---------------------------
>>TIP 5: Have you checked our extensive FAQ?
>>
>>               http://www.postgresql.org/docs/faqs/FAQ.html
>>
>>
>>    
>>
>
>
>  
>






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

* Re: Newbie question
@ 2003-12-22 21:28  Dave Cramer <pg@fastcrypt.com>
  parent: Christian Rengstl <tex79@web.de>
  0 siblings, 0 replies; 8+ messages in thread

From: Dave Cramer @ 2003-12-22 21:28 UTC (permalink / raw)
  To: Christian Rengstl <tex79@web.de>; +Cc: pgsql-jdbc

Ok, the only thing I can think of is you are doing a name lookup that is
returning, if you specify the ip address in the url does that speed it
up?

Dave
On Mon, 2003-12-22 at 15:19, Christian Rengstl wrote:
> Hi,
> 
> my operating system is SuSE Linux 9.0 with Java 1.4.2, postgresql 7.3.4 
> and the jdbc driver is pg73jdbc3.jar. I don't have a firewall set up, so 
> there shouldn't be any problem with that. I have the driver in the 
> lib/ext directory of my Java VM.
> 
> Chris
> 
> >Chris,
> >
> >No, it isn't normal, but with the information you have provided it will
> >be difficult to analyze the problem.
> >
> >Can you send us the operating systems involved, firewalls, etc.
> >
> >Dave
> >On Sat, 2003-12-20 at 14:06, Christian Rengstl wrote:
> >  
> >
> >>Hello everyone,
> >>
> >>I am quite new to Postgresql and JDBC and started to make my first 
> >>application to use postgresql. And here comes my doubt/question: is it 
> >>normal that it takes about 1 - 2 minutes to connect to the database? In 
> >>my case it actually does take that long, but I thought maybe I made 
> >>something wrong and you guys could give me a hint...
> >>
> >>Thanks
> >>
> >>Chris
> >>
> >>
> >>---------------------------(end of broadcast)---------------------------
> >>TIP 5: Have you checked our extensive FAQ?
> >>
> >>               http://www.postgresql.org/docs/faqs/FAQ.html
> >>
> >>
> >>    
> >>
> >
> >
> >  
> >
> 
> 
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 8: explain analyze is your friend
> 
> 




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

* Newbie question
@ 2004-09-24 22:30  Anton Nikiforov <anton@nikiforov.ru>
  0 siblings, 1 reply; 8+ messages in thread

From: Anton Nikiforov @ 2004-09-24 22:30 UTC (permalink / raw)
  To: pgsql-jdbc

Dear All!

Getting started with the JDBC programming i have some troubles:
1. Is there a kinda of solution to operate CIDR and other pgsql-specific 
value types with PGSQL+Java (i know, that i can use ::text to get and 
::cidr to set, but maybe there are some classes that extend Type class 
that i did not find in the documentation)?
2. I found almost everything what i can get from Result/Database 
metadata, but found no way to know the table name that that was 
indicated in sql statemen during getting data.
3. Is there any way to know that data in the database was changed 
(three-level application could do the trick, but i'm asking about simple 
way - JTable->JSorter->JModel->postgresql without using RMI or whatever)

I'm kindly asking to give just an URL where i can find this type of 
information?

Best regards,
Anton Nikiforov

Attachments:

  smime.p7s (application/x-pkcs7-signature, 3.1K) download

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

* Re: Newbie question
@ 2004-09-24 22:42  Kris Jurka <books@ejurka.com>
  parent: Anton Nikiforov <anton@nikiforov.ru>
  0 siblings, 0 replies; 8+ messages in thread

From: Kris Jurka @ 2004-09-24 22:42 UTC (permalink / raw)
  To: Anton Nikiforov <anton@nikiforov.ru>; +Cc: pgsql-jdbc



On Sat, 25 Sep 2004, Anton Nikiforov wrote:

> Getting started with the JDBC programming i have some troubles:
> 1. Is there a kinda of solution to operate CIDR and other pgsql-specific 
> value types with PGSQL+Java (i know, that i can use ::text to get and 
> ::cidr to set, but maybe there are some classes that extend Type class 
> that i did not find in the documentation)?

There are some java types that match postgresql specific types, but these 
are mainly for geometric data types.  For now you need to just use get and 
setString for these types.  Useful implementations for these types would 
be accepted.

> 2. I found almost everything what i can get from Result/Database 
> metadata, but found no way to know the table name that that was 
> indicated in sql statemen during getting data.

Currently undocumented and only in the development version of the driver
there are methods PGResultSetMetaData.getBaseXXXName where XXX can be
Column, Table, or Schema.  This retieves the underlying table information
from a query result.

> 3. Is there any way to know that data in the database was changed 
> (three-level application could do the trick, but i'm asking about simple 
> way - JTable->JSorter->JModel->postgresql without using RMI or whatever)

You could use LISTEN/NOTIFY to create a solution to this, but there's no 
standard or automatic way to make this happen.  Things like 
ResultSet.rowUpdated() are not implemented.

Kris Jurka



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

* Newbie question
@ 2006-05-09 15:36  MAIGNAN Luc <LMAIGNAN@fininfo.fr>
  0 siblings, 0 replies; 8+ messages in thread

From: MAIGNAN Luc @ 2006-05-09 15:36 UTC (permalink / raw)
  To: pgsql-jdbc

Hi list,

i apologize first for a so newbie question.
I use a Fedora core distribution with postgres 8.1.3. I'm looking for a full jdbc sample. Can someone tell me where I can find it ?

Thanks for any help

Best regards



*********************************************************************
Ce message et toutes les pièces jointes (ci-après le "message") sont établis à l'intention exclusive de ses destinataires et sont confidentiels. Si vous recevez ce message par erreur, merci de le détruire et d'en avertir immédiatement l'expéditeur. Toute utilisation de ce message non conforme à sa destination, modification, diffusion ou toute publication, totale ou partielle, est interdite, sauf autorisation expresse.FININFO (et ses filiales) décline(nt) toute responsabilité au titre de ce message, dans l'hypothèse ou il aurait été modifié, altéré, falsifié ou encore édité ou diffusé sans autorisation.
-----------------------------------------------------
This message and any attachments (the "message") is intended
solely for the addressees and is confidential. If you receive this 
message in error, please delete it and immediately notify the 
sender. Any use not in accord with its purpose, any dissemination 
or disclosure, either whole or partial, is prohibited except formal 
approval. Neither FININFO (nor any of its subsidiaries or affiliates) 
shall be liable for the message if modified, altered, falsified, edited 
or diffused without authorization. **********************************************************************

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


end of thread, other threads:[~2006-05-09 15:36 UTC | newest]

Thread overview: 8+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-09-17 19:18 Re: newbie question: . . . Russ McBride <Russ@psyex.com>
2003-12-20 19:06 Newbie question Christian Rengstl <tex79@web.de>
2003-12-22 19:33 ` Re: Newbie question Dave Cramer <pg@fastcrypt.com>
2003-12-22 20:19   ` Re: Newbie question Christian Rengstl <tex79@web.de>
2003-12-22 21:28     ` Re: Newbie question Dave Cramer <pg@fastcrypt.com>
2004-09-24 22:30 Newbie question Anton Nikiforov <anton@nikiforov.ru>
2004-09-24 22:42 ` Re: Newbie question Kris Jurka <books@ejurka.com>
2006-05-09 15:36 Newbie question MAIGNAN Luc <LMAIGNAN@fininfo.fr>

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