[SQL] selective dump pg_dump: only specific non-tables? with schema name?

2005-11-13 Thread Bath, David
Hi folks, Three questions about pg_dump (that might be a feature request). Let me know if pg_dump is not the best tool for this sort of thing. 1. Can I pg_dump only non-table information from the command line e.g. single function, all functions, trigger definitions? 2. Can I pg_dump schema o

Re: [SQL] Problem with "NOT IN (subquery)

2005-11-13 Thread Christian Paul B. Cosinas
I think that query should work. Hmmm... Weird... I tried that in my database and it is working. What do you mean by this? " If i use a list instead of a subquery it works normaly but it's not easy to manage it like this." -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED

Re: [SQL] Problem with "NOT IN (subquery) - use NOT EXISTS

2005-11-13 Thread chester c young
--- Steve SAUTETNER <[EMAIL PROTECTED]> wrote: > SELECT * FROM famille WHERE famille_code NOT IN > (SELECT DISTINCT famille_mere_famille_code FROM famille);" try select * from famille f1 where not exists (select 1 from famille f2 where f1.famille_code = f2.famille_mere_famille_code); __

Re: [SQL] Problem with "NOT IN (subquery)

2005-11-13 Thread Stephan Szabo
On Sun, 13 Nov 2005, Steve SAUTETNER wrote: > Hi, > > I have a table named "famille" whose structure and content is : > > famille_code | famille_mere_famille_code | famille_libelle | > famille_niveau > --+---+---+- > --- > 00