473,789 Members | 2,807 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

books/sites for someone really learning PG's advanced features?

I'm switching to PostgreSQL from MySQL. Using the SAMs book called
PostgreSQL which has been great to skim the surface of the
differerences.

I had never even heard of things like triggers, views, and foreign keys before.

Any recommended books or websites (or exercises) that would really
help someone get to know not just the basics of how these advanced
features work, but some real in-depth insight into how to USE them for
real work?

(It's always hard to get used to actually using features you never
knew existed before.)

Thanks!

---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match

Nov 23 '05 #1
5 1309
Miles Keaton wrote:
I'm switching to PostgreSQL from MySQL. Using the SAMs book called
PostgreSQL which has been great to skim the surface of the
differerences.

I had never even heard of things like triggers, views, and foreign keys before.

Any recommended books or websites (or exercises) that would really
help someone get to know not just the basics of how these advanced
features work, but some real in-depth insight into how to USE them for
real work?


I'd start out with:

http://www.acm.org/classics/nov95/toc.html

Unfortunately, the ACM doesn't have the complete paper online.

Then read:

C.J. Date, An Introduction to Database Systems

Or skip over the Intro book and read:

C.J. Date, A Guide to the SQL Standard

Here's a good link for problems caused due to lack of normalization:

http://209.197.234.36/db/simple.html

You'll see that views and foreign keys are fundamental to ensuring
consistency and handling data with normalized base tables. You should
try to achieve logical consistency in your design without using triggers
through the use of domain constraints, column and table constraints and
referential integrity constraints. Failing to enforce consistency at
that point, triggers can be used to enforce such things as what Date
calls database constraints. I.e.: if a department has a budget of under
1000, there should not exist more than 5 employees.

Hope that helps,

Mike Mascari

---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match

Nov 23 '05 #2
Hi,

On Fri, 2004-09-24 at 08:03, Miles Keaton wrote:
I'm switching to PostgreSQL from MySQL. Using the SAMs book called
PostgreSQL which has been great to skim the surface of the
differerences.

I had never even heard of things like triggers, views, and foreign keys before.
Smells like success story here :-)
Any recommended books or websites (or exercises) that would really
help someone get to know not just the basics of how these advanced
features work, but some real in-depth insight into how to USE them for
real work?

(It's always hard to get used to actually using features you never
knew existed before.)


The point is when you miss something and you know there must be a better
way to do things which motivates a change of a plattform.

I dont know many good books about this, but at least foreign keys
are a basic concept of RDBMS so you should find a lot about in the
literature. All other topics are something you will know when you
have a problem to solve. I'd recomment not using a feature just
because its so cool :-)
Postgresql has a lot of other helpful things like functions in
different languages - where you definitively will have to read
a lot, custom datatypes and operators and more.

Welcome to the world of postgres I'd say :-)

Regards
Tino
---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to ma*******@postg resql.org so that your
message can get through to the mailing list cleanly

Nov 23 '05 #3
On Thu, Sep 23, 2004 at 11:03:30PM -0700, Miles Keaton wrote:
I'm switching to PostgreSQL from MySQL. Using the SAMs book called
PostgreSQL which has been great to skim the surface of the
differerences.

I had never even heard of things like triggers, views, and foreign keys before.

Any recommended books or websites (or exercises) that would really
help someone get to know not just the basics of how these advanced
features work, but some real in-depth insight into how to USE them for
real work?

(It's always hard to get used to actually using features you never
knew existed before.)


Hi Miles,

It sounds like you're in the same place I was in 18 months ago. I
learned SQL (as it were) by reading the MySQL manual, and then I read
an advocacy post somewhere and realized that I was re-implementing in my
middleware all the stuff that the DBMS should've been doing for me
already.

The way I learned Postgres was by reading the documentation
cover-to-cover (<http://www.postgresql. org/docs>). There are lots of
really good examples in there on all the features you mention, but I
seem to remember that they were scattered all over the place, and
anyway I found the docs to be a pretty easy read. I never bothered
with any of the Postgres-specific books because, as I understood it,
there was nothing on the market at the time that covered the latest
version.

Actually, the feature I had the hardest time learning were server-side
functions (including triggers), because I couldn't find a good
interactive programming environment with syntax highlighting and all
the rest to test them out with.

Now, what really helped me to understand how to *query* databases was
the book _An Introduction to Database Systems_ by Chris Date, but that
book might distract you from learning Postgres, if you're an idealist,
because it really finds a lot of reasons to disparage SQL.

- Jeremy

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Nov 23 '05 #4
Miles,

(Just like someone else also commented), I was in a situation like
yours, and I found the postgres online documentation quite helpful. I
wouldn't read it cover-to-cover yet, but eventually you will want to
read every part of it.

Here is what I found particular helpful at the start:

SQL commands:
http://www.postgresql.org/docs/7.4/s...-commands.html

Concurrency control:
http://www.postgresql.org/docs/7.4/static/mvcc.html

Triggers:
http://www.postgresql.org/docs/7.4/static/triggers.html

Note that the section on triggers is a bit sparse, but you can see alot
of examples of triggers and their use by looking through the various
pages about pl/pgsql, pl/perl, etc. (which follow the section about
triggers)

Paul Tillotson

Miles Keaton wrote:
I'm switching to PostgreSQL from MySQL. Using the SAMs book called
PostgreSQL which has been great to skim the surface of the
differerence s.

I had never even heard of things like triggers, views, and foreign keys before.

Any recommended books or websites (or exercises) that would really
help someone get to know not just the basics of how these advanced
features work, but some real in-depth insight into how to USE them for
real work?

(It's always hard to get used to actually using features you never
knew existed before.)

Thanks!

---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match

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

http://www.postgresql.org/docs/faqs/FAQ.html

Nov 23 '05 #5
"Miles Keaton" <mi*********@gm ail.com> wrote in message
news:59******** *************** *@mail.gmail.co m...
I'm switching to PostgreSQL from MySQL. Using the SAMs book called
PostgreSQL which has been great to skim the surface of the
differerences.

I had never even heard of things like triggers, views, and foreign keys
before.

Any recommended books or websites (or exercises) that would really
help someone get to know not just the basics of how these advanced
features work, but some real in-depth insight into how to USE them for
real work?

(It's always hard to get used to actually using features you never
knew existed before.)

Thanks!


I too am just starting to learn, but I've found Practical PostgreSQL by
O'Reilly to be quite good and very informative.

--
Best regards, from Don Kelloway of Commodon Communications
Visit http://www.commodon.com to learn about the "Threats to Your Security
on the Internet".
Nov 23 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
1934
by: noid droid | last post by:
Hi. I posted yesterday asking if C# lived up to the hype. Thus far the feedback has been all positive. (Thanks.) Can anyone suggest GOOD books for learning C# and the Visual Studio .NET IDE? If there is a book that covers both, that would be great. Also, is it necessary for me to learn a lot about the .NET framework that wouldn't also be covered in one of the books? If I can find a book that'll get me up and running with the IDE...
8
1727
by: Earl | last post by:
I've been on a mission this past year to move from VB6 to .Net. I'm fortunate(!?) not to have the big catalog of some long-time VB developers, although I have some CE apps that have to be entirely rewritten in CF. A lot of what I develop has to be written for the PPc, so I knew I would be looking for information in .Net, ADO.Net, CF -- and SQL Server. So in the spirit that others might benefit from my journey, here are my observations....
54
6462
by: m.roello | last post by:
In the book: "Working with Microsoft Visual Studio 2005" Craig Skibo wrote: "The power of Visual Studio 2005 lies in its ability to empower users to build, test, and debug powerful applications quickly and easly." I don't agree on what concernes ASP .NET Web Sites in VS2005. All what involves Namespaces in Web sites has been disappeared. I know you can still MANUALLY manage them, but not QUICKLY and EASLY. In a
26
3670
by: puzzlecracker | last post by:
It'd be interesting to compare the learning practices of c++ practitioners. I'll start with mine The C++ Programming Language C++ Primer Effective C++ More Effective C++ Effective STL The C++ Standard Library : A Tutorial and Reference (most of it) Exceptional C++
23
2141
by: herraotic | last post by:
I have been getting ready to learn programming for a long time, installed a GNU/Linux operating system, learnt the ins and outs but I think it is time to pick up a book and learn to now program. I have never actually programmed before only dabbed into XHTML so do take it in mind that I need a book that could slowly progress me into the fundamentals of programming. I chose Python as my first programming language from hearing the praise...
8
4817
by: Frank Swarbrick | last post by:
I just got an email from Amazon.com offering me a pre-order of "DB2 9 for Developers" by Philip K. Gunning. Clicking on the link it showed me a few other possibly interesting books: "IBM DB2 9 New Features" by Paul Zikopoulos "Understanding DB2 9 Security" by Rebecca Bond "DB2 9 Fundamentals Certification Study Guide" by Roger E. Sanders Anyone have any comments on any of these books? The Developers one sounds interesting to me, as...
0
1269
by: paradox6996 | last post by:
I was looking today at some Object Oriented Programming books today and wasn't sure which was good for what I wanted to learn. I'm currently in school for CSC and have taken programming classes; I already know the basics and want to further my knowledge into advanced OOP. I think learning advanced OOP techniques is learning concepts like encapsulation, inheritance, modularity, and polymorphism, etc... If I'm wrong then correct me. If this is...
38
2008
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - What books cover EcmaScript? ----------------------------------------------------------------------- Most CLJ regulars believe the best book to be: JavaScript: The Definitive Guide, 5th Edition By David Flanagan ISBN:0-596-10199-6 The errata should be read along with the book.
0
9511
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10412
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10200
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7529
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6769
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5551
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4093
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3703
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2909
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.