Re: [GENERAL] getting the currval of a sequence

1998-08-14 Thread James Olin Oden
> I think you should just go with what Vadim suggested and use: > select currval('my_sequence'); > This will be the same within a transaction, even if there is another > transaction using the same sequence. Sorry, I wasn't thinking of it happening in the same transaction. In that case

Re: [GENERAL] Mac Connectivity

1998-07-29 Thread James Olin Oden
> At 2:58 +0300 on 29/7/98, Andrew Gibson wrote: > > > Has anyone achieved Macintosh connectivity to PostgreSQL? > > > > If so, any details would be appreciated i.e. which ODBC driver > > Not by ODBC, but generally you can do it with Java or TCL. I had a bit of a > problem with the TCL interface,

Re: [GENERAL] Postgres vs commercial products

1998-07-28 Thread James Olin Oden
> The other problem with trying to implement RAW devices, and, > granted, I could be over cmplicating it, but how do you implement it > across X operating systems running Y platforms? Doesn't each of them > access drives differently? And, in some cases, multiply that by two for > IDE vs

Re: [GENERAL] Sufficient Primary Key?

1998-07-24 Thread James Olin Oden
> > > I don't like doing that because I don't want to store the entire > name in every other table which needs to be linked with this one. > So, for instance, in the table that keeps track of what authors go > to what book, I want it to just have two fields, the Book's primary > key and the Autho

Re: [GENERAL] Re: [HACKERS] [Fwd: SGVLLUG Oracle and Informix on Linux]

1998-07-24 Thread James Olin Oden
> I think only doing it the SQL way would be fine. Documentation would, of > course, have to cover it That last sentence says it all..."Documentations would, of course, have to cofver it." The reason I used createdb to generate the my database, is that is what the man page said to do. Unfortun

Re: [GENERAL] Re: [HACKERS] [Fwd: SGVLLUG Oracle and Informix on Linux]

1998-07-22 Thread James Olin Oden
> > My experience with paid support vs mailings lists tends to have me > > much preferring mailing lists. At least on a mailing list, you have a > > good chance of finding someone that has already hit that same problem. > > Actually, I tend to end up supporting the product for which I am

Re: [GENERAL] How to rename a database?

1998-07-09 Thread James Olin Oden
> Use following syntax: > alter table rename to > > I don't think that will work for the entire database. Remember a table is part of the database. So I don't think alter will change the actual database's name... > > > > How do I rename an existing database? Is it enough to just rename the