Re: [SQL][GENERAL] Any documatation about porting from Oracle to PostgreSQL

2006-10-17 Thread Lewis Cunningham
Felix,

You might want to look at EnterpriseDB, which is PostgreSQL with
Oracle compatibility extensions.

www.enterprisedb.com

LewisC


--- Felix Zhang <[EMAIL PROTECTED]> wrote:

> Hi all,
> 
> I'm a newbie of PostgreSQL. I'm searching materials about porting
> from
> Oracle to PostgreSQL.
> Anyone can share with me some good documatations?
> 
> Thanks and regards,
> Felix
> 

---
Lewis R Cunningham

ItToolBox Blog: An Expert's Guide to Oracle 
http://blogs.ittoolbox.com/oracle/guide/

EnterpriseDB: The Definitive Reference
http://www.rampant-books.com/book_2007_1_enterprisedb.htm
--

---(end of broadcast)---
TIP 3: Have you checked our extensive FAQ?

   http://www.postgresql.org/docs/faq


Re: [SQL] Tunning PostgreSQL performance for views on Windows

2007-07-30 Thread Lewis Cunningham
How big are the underlying tables?

If they are large, are you partitioning?

Since the values only change daily, if the end result is a reasonable
size, have you considered using a CTAS rather than views?

LewisC

--- Ranieri Mazili <[EMAIL PROTECTED]> wrote:

> Hello,
> 
> I'm developing a BI and as database it's using postgresql 8.2, how
> data
> are very detailed, I'm creating a view to consolidate the most
> important
> data, but the performance of view is very poor, 1 minute to perform
> more
> or less without where clause.
> I need to know how I can increase the performance, if exist some
> option
> to do cache, because the view will change only one time per day.
> My configuration is default, without modifications after install.
> I'm using windows 2003 server with a dell server with 4GB of
> memory.
> 
> To create the view, I created some functions, and then perform they
> on
> one select like:
> select A.field1, B.field2, ... from function_A() A, function_B()
> B...
> Is this the best way to do it?
> 
> I appreciate any help.
> 
> Thanks
> 
> 
> ---(end of
> broadcast)---
> TIP 3: Have you checked our extensive FAQ?
> 
>http://www.postgresql.org/docs/faq
> 


---
Lewis R Cunningham

An Expert's Guide to Oracle Technology
http://blogs.ittoolbox.com/oracle/guide/

EnterpriseDB: The Definitive Reference
http://tinyurl.com/39246e
--

---(end of broadcast)---
TIP 4: Have you searched our list archives?

   http://archives.postgresql.org


Re: [SQL] Rollback in Postgres

2008-07-11 Thread Lewis Cunningham
In addition to allowing you to read old data, Flashback will allow you to 
rollback to a point in time, including returning a single table to a specific 
state.  Flashback database is like PITR without the log files.  

It started in 9i and improved dramatically in 10g.  11g has made additional 
improvements.

http://download.oracle.com/docs/cd/B19306_01/backup.102/b14192/intro007.htm

http://download.oracle.com/docs/cd/B28359_01/backup.111/b28270/rcmflash.htm


Lewis R Cunningham

An Expert's Guide to Oracle Technology
http://blogs.ittoolbox.com/oracle/guide/

Postgres Forums
http://postgres.enterprisedb.com/forum.do




--- On Fri, 7/11/08, Simon Riggs <[EMAIL PROTECTED]> wrote:

> From: Simon Riggs <[EMAIL PROTECTED]>
> Subject: Re: [SQL] Rollback in Postgres
> To: "Scott Marlowe" <[EMAIL PROTECTED]>
> Cc: "samantha mahindrakar" <[EMAIL PROTECTED]>, pgsql-sql@postgresql.org
> Date: Friday, July 11, 2008, 2:58 PM
> On Fri, 2008-07-11 at 11:21 -0600, Scott Marlowe wrote:
> > rollback after commit
> 
> Are you sure? 
> 
> Personally I don't think its viable. If it really does
> that it will
> would also need to rollback all transactions whose changes
> depend upon
> the earlier transaction. It would also need to track
> transactions that
> read data changed by an earlier transaction and then makes
> changes to
> the database. It's got no way to track that without
> extensive and costly
> additional infrastructure, since after transaction commit
> row locking
> information can be cleaned up by read-only transactions
> accessing those
> changed data blocks.
> 
> Flashback query allows reading data as it was at a certain
> point in the
> past. We might one day provide that, but undoing individual
> transactions
> isn't ever going to be feasible, without unknowable
> risk.
> 
> Not jumping on you, just think their marketing is ahead of
> the reality.
> 
> -- 
>  Simon Riggs   www.2ndQuadrant.com
>  PostgreSQL Training, Services and Support
> 
> 
> -- 
> Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-sql

-- 
Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql


Re: [SQL] Rollback in Postgres

2008-07-12 Thread Lewis Cunningham

> 
> Please don't put links to copyrighted material on our
> lists.
> 

Postgres docs are copyrighted.  The oracle docs are free to access just like 
the postgres docs.  What is the issue?

LewisC


-- 
Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql


Re: [SQL] Rollback in Postgres

2008-07-12 Thread Lewis Cunningham
--- On Sat, 7/12/08, Scott Marlowe <[EMAIL PROTECTED]> wrote:

> What I would appreciate as regards Oracle's flashback
> technology would
> have been a link to a well written review showing the warts
> as well as
> the beauty.  I've found that Oracle stuff sounds good
> on paper, and
> turns into a giant maintenance nightmare upon deployment. 
> But that's
> just what I've seen looking over Oracle DBA shoulders
> in the past.

Oracle-base is a site I trust and use.  Tim writes very good articles and this 
is one he did recently covering flashback in 11g.  The example on flashback 
transaction is the best I've seen.

http://www.oracle-base.com/articles/11g/FlashbackAndLogminerEnhancements_11gR1.php


Lewis R Cunningham

An Expert's Guide to Oracle Technology
http://blogs.ittoolbox.com/oracle/guide/

Postgres Forums
http://postgres.enterprisedb.com/forum.do



 


-- 
Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql


Re: [SQL] Rollback in Postgres

2008-07-14 Thread Lewis Cunningham
--- On Mon, 7/14/08, Kaare Rasmussen <[EMAIL PROTECTED]> wrote:

> But yes, it has to be enabled, and yes it has to have a
> performance cost 
> somehow, but people are requesting it, and somehow I

AFAIK, It is built from undo so there is no ADDITIONAL overhead.  It just saves 
the undo that is created anyway for any DML anyway.  That undo is already on 
disk.  

Lewis R Cunningham

An Expert's Guide to Oracle Technology
http://blogs.ittoolbox.com/oracle/guide/

Database Wisdom
http://databasewisdom.com






-- 
Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql