Announcement

Collapse
No announcement yet.

Precise Pangolion pretty pithy preview.

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #31
    Re: Precise Pangolion pretty pithy preview.

    An explanation on how to install PostgreSQL on Oneiric is here.

    PostgreSQL comes with two template databases, template0 and template1. The first is used to restore the second if the second becomes corrupted. In ten years of using PostgreSQL I have never encountered a corrupted database. User databases are usually created using template1. If one wants to deploy a set of databases with a special base configuration, say with TCL, Python, Perl or PL/SQL as available tools, one uses CREATE LANGUAGE on template1 to add them to that template. Then, one can add tables, functions, triggers, etc... to template1 to create the special base database. Rename it to something useful and use it as the template to create subsequent databases. (When one uses CREATE DATABASE it will create the new database using the database from which the command was issued, unless another was specificed in the command. If things get messed up one can log into template0 as postgres (the first "superuser") and copy it over tempate1. I say this theoretcially. I have never had to do that.

    When I install PostgreSQL as a local server on my machine I open a Konsole and issue
    Code:
    sudo -u postgres psql
    which gets me into the psql console admin program with the template1 database loaded. From there I can issue
    Code:
    \CREATE USER jerry WITH SUPERUSER PASSWORD 'mypasswd';
    \CREATE DATABASE jerry WITH OWNER = jerry;
    \q
    The "\h" command will list all the commands. "\h commmad" will give help on the specific command.
    Then, start PGAdminIII and click the connection icon (power plug). Enter the name of the database (in my case jerry), server location as localhost, and jerry's password. The reason:
    Postgresql is configured to use 'ident sameuser' authentication for any connections from the same machine by default. You can refer to the Postgresql documentation for more information. This basically implies that if your Ubuntu username is 'foo' and you add 'foo' as a Postgresql user then you can connect to the database without using a password.

    This is how you create a database account (which is also a database superuser in this particular case) with the same name as your login name and a generate a password for it. This is necessary as the only user who can connect to a fresh install is the postgres user.
    In case I forgot, PostgreSQL is an object database in which you can create rows in tables by inheriting rows from other tables. The docs explains that feature and their exampe of the weather database illustrates it.

    There is a database documentation tool written in Java called DRUID. I used it to design databases, SQL scripts, triggers, indexes, etc..., and then to create graphical documentation, Then I could generate scripts for Oracle, or PostgreSQL, and several others, that would allow me to create that database configuration on that specific server. I don't know how its progressed in the last 3.5 years, so user beware.
    "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
    – John F. Kennedy, February 26, 1962.

    Comment


      #32
      Re: Precise Pangolion pretty pithy preview.

      Thanks for the helpful summary GreyGeek - I've been using mysql since the 90s, mainly because I wanted a speed demon that was easy to use for web stuff. But I've been hearing that recent postgres releases have pretty much closed the performance gap with mysql. I need to have another look at postgres.

      Comment


        #33
        Re: Precise Pangolion pretty pithy preview.

        Indeed, thanks Jerry. When KDE 4.8 RC2 hits the Ubuntu repositories, I'll switch KMail's backend to PostgreSQL and learn yet another new thing. I love this OS

        Comment


          #34
          Re: Precise Pangolion pretty pithy preview.

          With kdewallet I just uncheck where it says use kdewallet subsystem. Works great but now I wonder is it still running anyway?
          it is ALWAYS the first thing I do on a new install.

          Comment


            #35
            Re: Precise Pangolion pretty pithy preview.

            Originally posted by buzzmandt
            ...
            Works great but now I wonder is it still running anyway?
            ...
            Code:
            ps aux | grep kwalletd
            "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
            – John F. Kennedy, February 26, 1962.

            Comment


              #36
              Re: Precise Pangolion pretty pithy preview.

              Originally posted by SteveRiley
              Indeed, thanks Jerry. When KDE 4.8 RC2 hits the Ubuntu repositories, I'll switch KMail's backend to PostgreSQL and learn yet another new thing. I love this OS
              And, it doesn't cost an arm and a leg to try things!
              "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
              – John F. Kennedy, February 26, 1962.

              Comment


                #37
                Originally posted by woodsmoke View Post

                Think of the attitude of the developers. Although I never really liked Mandriva/Mandrake I got the impression that the devlopers and other folk really....enjoyed the distro.
                I dig you. Unfortunatelly, The Old Lady seems to be dying.

                Last edited by rms; Jan 29, 2012, 07:21 AM.
                Ok, got it: Ashes come from burning.

                Comment


                  #38
                  yes, and that is too bad.

                  woodsmoke

                  Comment


                    #39
                    New Precise Install Muon wants remove Kubu desktop 4 KDEpassword

                    Hi
                    Edited because the problem was not with Muon it was with a variety of other things, see second post above.
                    woodsmoke
                    Last edited by woodsmoke; Feb 07, 2012, 09:37 PM.

                    Comment


                      #40
                      Again edited.
                      woodsmoke
                      Last edited by woodsmoke; Feb 07, 2012, 09:38 PM.

                      Comment


                        #41
                        Install Synaptic. It's still better.
                        "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
                        – John F. Kennedy, February 26, 1962.

                        Comment


                          #42
                          dpkg is one's friend.

                          Well,
                          Since Rekonq was doing it's "there is another package manager open" dance I ran in terminal:

                          Sudo dpkg –configure -a

                          Surprisingly it found a lot of other problems with the system and after all the churning around was done.... ta da!! Muon is now functional and I was able to install the Akonadi resources for calendar and "stuff/contacts".

                          The dpkg was quite extensive, so I am appending a zip file of the odt text on the off chance that people who actually know what is going on might glean something from it.

                          I will edit the previous(by two) posts to remove the irrelevant items.

                          woodsmoke
                          Attached Files

                          Comment

                          Working...
                          X