RE: [GENERAL] MACADDR types NULL value (undocumented?)

2001-03-26 Thread Mayers, Philip J
| +--+ -Original Message- From: Tom Lane [mailto:[EMAIL PROTECTED]] Sent: 26 March 2001 16:05 To: Mayers, Philip J Cc: '[EMAIL PROTECTED]' Subject: Re: [GENERAL] MACADDR types NULL value (undocumented?) "Mayers, Philip J" <[EMAIL PROTECTED]> writes: > I

RE: [GENERAL] FW: Optimisation of IN condition

2001-03-08 Thread Mayers, Philip J
+--+ | Phil Mayers, Network Support | | Centre for Computing Services| | Imperial College | +--+ -Original Message- From: Mayers, Philip J [mailto:[EMAIL PROTECTED]] Sent: 08 March 2001 12:18 To: '[EMAIL PROT

RE: [GENERAL] FW: Optimisation of IN condition

2001-03-08 Thread Mayers, Philip J
ntre for Computing Services| | Imperial College | +--+ -Original Message- From: Mayers, Philip J [mailto:[EMAIL PROTECTED]] Sent: 08 March 2001 11:22 To: '[EMAIL PROTECTED]' Subject: [GENERAL] FW: Optimisation of IN condition I'v

[GENERAL] FW: Optimisation of IN condition

2001-03-08 Thread Mayers, Philip J
I've got some tables: create table interface ( machineid text, mac macaddr, primary key(mac) ); create table arptable ( router text, interface int2, mac macaddr, ip inet ); They're big, 10k rows in interface, maybe 35k in arptable. I want to do this: hdb=> explain select * from

RE: [GENERAL] Re: Query never returns ...

2001-02-08 Thread Mayers, Philip J
What does: EXPLAIN SELECT tblSIDEDrugLink.DrugID, tblSIDEDrugLink.MedCondID, tblMedCond.PatientName AS MedCondPatientName, tblMedCond.ProfessionalName AS MedCondProfessionalName, tblSIDEDrugLink.Frequency, tblSIDEDrugLink.SeverityLevel FROM

RE: [GENERAL] Can you help a newbie?

2001-02-07 Thread Mayers, Philip J
Hmm... very suspicious... However, if you have root on that machine, try this: su - root su - postgres cd /var/lib/pgsql/data vi pg_hba.conf add: local databasename trust Restart postgres, Switch back to your user, then try: psql databasename postgres Bingo, you're in as the DB admin. GRANT

[GENERAL] LIKE with macaddr types

2000-12-12 Thread Mayers, Philip J
All, I want to do a LIKE on a column of type macaddr, looking (for example) for all MAC addresses with the prefix "00:80", and so on. There's no ~~ operator for macaddr though... I tried casting macaddr to text, but that's undefined apparently (WTF?) - any ideas? Regards, Phil +

RE: [GENERAL] RE: even more CIDR weirdness (was equality operator on CIDR colum n as primary key)

2000-08-30 Thread Mayers, Philip J
15:37 To: Mayers, Philip J Cc: '[EMAIL PROTECTED]' Subject: Re: [GENERAL] RE: even more CIDR weirdness (was equality operator on CIDR colum n as primary key) IIRC, there were some problems with CIDR where it was considering the low bits significant even though they might not have been s

[GENERAL] RE: even more CIDR weirdness (was equality operator on CIDR column as primary key)

2000-08-30 Thread Mayers, Philip J
#x27;t see any pattern to the addresses that work, and those that don't. Help! Regards, Phil +--+ | Phil Mayers, Network Support | | Centre for Computing Services| | Imperial College | +----------+ -Original M

[GENERAL] equality operator on CIDR column as primary key

2000-08-30 Thread Mayers, Philip J
I'm having problems with the CIDR type. I have a table containing a column of type CIDR, and that is the primary key. The equality operator for the CIDR type appears to only work once per connection. The following SQL shows a test case demonstrating the problems. I'm running stock Redhat 6.2 on