Re: [GENERAL] Oracle 10g Express - any danger for Postgres?

2005-11-01 Thread Doug Bloebaum
On 11/1/05, Welty, Richard [EMAIL PROTECTED] wrote: Scott Marlowe writes: and PostgreSQL enjoys a MUCH richer and easier to use set of utilities. I find psql to be much much easier to drive than oracle's SQL*PLus, which makes my head hurt. i have to use the informix dbaccess tool here at

Re: [GENERAL] fine tuned database dump/reload?

2005-10-11 Thread Doug Bloebaum
On 10/11/05, Dan Armbrust wrote:: Now I'm just filling the mailing list with mis-information.It actually ignores all but the last -t flag - so this only allows me to specify one table at a time, rather than several tables. There's always the low-tech option of: for table in `cat

Re: [GENERAL] Get all table names that have a specific column

2005-09-30 Thread Doug Bloebaum
On 9/30/05, Emi Lu [EMAIL PROTECTED] wrote: Greetings, I am not very familiar with the system views/tables in postgreSQL. I'd like to get all table names that have a column let's say named col1. I'd use: select table_name from information_schema.columns where table_schema='my_schema' and

Re: [GENERAL] Create a pg table from CSV with header rows

2005-09-16 Thread Doug Bloebaum
On 9/15/05, Michael Fuhr [EMAIL PROTECTED] wrote: On Thu, Sep 15, 2005 at 06:48:59PM -0400, Robert Fitzpatrick wrote: Anyone know a package that can do this? Perferrably a Unix/Linux package.It would be trivial to write a script in a language like Perl to read the first line of a file and generate

Re: [GENERAL] PostgreSQL and XML support

2005-09-06 Thread Doug Bloebaum
On 9/6/05, Andrey Fomichev [EMAIL PROTECTED] wrote: - Are there any of you who need to store and query XML data?- Do you already use PostgreSQL to store XML data or you are just thinking about it? The project I'm currently working on uses XML for both data extraction from Postgres and as a means

Re: [GENERAL] About ERROR: must be *superuser* to COPY to or from a file

2005-08-31 Thread Doug Bloebaum
Jim Nasby asked: What do people think about the Oracle method where bulk data operations can only occur in a specified directory? Making that restriction mightaddress some of the security concerns. I don't think we should changeCOPY in such a way that you *have* to use a specified directory, but

Re: [GENERAL] Waiting on a transaction

2005-08-16 Thread Doug Bloebaum
Wow, non-blocking lock failure? Can I take this chance to say an overdue thanks to the Postgresql developers? A truly commercial grade feature set in a free database... On 8/16/05, Matt Miller [EMAIL PROTECTED] wrote: On Tue, 2005-08-16 at 12:01 -0700, Bill Moseley wrote: I wondered if my

Re: [GENERAL] truncate all tables?

2005-06-29 Thread Doug Bloebaum
On 6/29/05, Zlatko Matić [EMAIL PROTECTED] wrote: How could I truncate, delete all content of all tables in one step ? You could use a query to generate the statements in psql: \t \o trunc_all.out SELECT 'TRUNCATE ' || table_name || ';' FROM information_schema.tables WHERE

Re: [GENERAL] Viewing non-system objects in psql

2005-06-17 Thread Doug Bloebaum
On 6/16/05, David Fetter [EMAIL PROTECTED] wrote: On Thu, Jun 16, 2005 at 07:54:29PM -, Greg Sabino Mullane wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I recently submitted a patch that makes all the database objects behave in the same way as far as the backslash psql

[GENERAL] Oracle's Virtual Private Database functionality

2005-03-13 Thread Doug Bloebaum
In the spirit of tell us what you're trying to do... I'd like to mimic a subset of Oracle's Virtual Private Database functionality (see http://dba-oracle.com/oracle_news/2004_1_16_vpd_security.htm for an overview) in Postgres: based on some per-connection setting, I'd like a query to return a

Re: [GENERAL] Copy row from table to table

2004-12-14 Thread Doug Bloebaum
Michael Fuhr [EMAIL PROTECTED] 12/14/04 1:45 PM On Tue, Dec 14, 2004 at 11:48:21AM -0600, Kall, Bruce A. wrote: What is the easiest way to copy a particular row from one table to another (assuming all the columns are exactly the same). I want to maintain a table ('backup_table') that has

[GENERAL] Equivalent to Oracle's inline CURSOR in a SELECT clause?

2004-08-29 Thread Doug Bloebaum
In Oracle I can do this: SELECT h.transaction_number CURSOR(SELECT d.detail_number FROM detail d WHERE d.transaction_number=h.transaction_number) FROM header h WHERE h.transaction_date='25-aug-2004' which comes in handy once in a while for nested