Re: [SQL] SQL to list databases?

2003-01-28 Thread Horst Herb
On Fri, 24 Jan 2003 05:56, you wrote: > Is there a query that will return all the databases available, similar > to what psql -l does? select * from pg_database; Horst ---(end of broadcast)--- TIP 4: Don't 'kill -9' the postmaster

Re: [SQL] help!

2002-10-24 Thread Horst Herb
On Wed, 16 Oct 2002 19:15, John Geng wrote: > how to migrate sql from MS sql server to postgresql? > i'd like to tranfer sql schema from MS server > Example: > ***1* > if exists (select * from sysobjects > where id = object_id(N'[admin].[test]') and >

Re: [SQL] Diferent databases on same query...

2001-10-26 Thread Horst Herb
On Saturday 20 October 2001 08:53, you wrote: > Andre, > > The only reason to have data for one query in different databases is if > the databases are on different machines. If you're running on PC-type > hardware, you might have to do that some times for performance reasons. > But if at that poin

Re: [SQL] GUID in postgres

2001-10-24 Thread Horst Herb
On Thursday 25 October 2001 03:41, John Hasler wrote: > Josh writes: > > I'm sure you could make your own GUID, whatever one is. > > Globally Unique IDentifier, probably. Just hash a 128 bit random number > with the current date. That gives you no gurantee it will be unique. What we are using i

[SQL] Re: how to use record type

2001-08-19 Thread Horst Herb
On Saturday 18 August 2001 00:18, you wrote: > I have encountered this problem (in a different context), and could not > find a way to insert entire rows/records in the way that you appear to > want. But it worked fine if I INSERTed explicitly, like: > INSERT INTO table VALUES (OLD.field1, OLD.fi

Fwd: [SQL] how to use record type

2001-08-16 Thread Horst Herb
I have difficulties understanding how to use variable of "record" or "row" type. How do I actually insert the variables OLD or NEW or a record type into a table from within a trigger? Like doing the following: drop table th1; create table th1( id serial, text text ); drop table th_audit; crea

[SQL] how to use record type

2001-08-14 Thread Horst Herb
Help please! How do I actually insert the variables OLD or NEW or a record type into a table from within a trigger? Like doing the following: drop table th1; create table th1( id serial, text text ); drop table th_audit; create table th1_audit( ts timestamp default now() ) inherits(th1); dr