|
||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||
When a UNION is performed, the data is sorted in order to eliminate duplicate rows in keeping with the proper definition of a UNION. If you want the concatenation of pre-sorted queries you can use UNION ALL.
The issue was raised that people were not seeing their posts on pgsql-general immediately. Marc Fournier, the moderator, said that he reviews mail from unsubscribed addresses and has hundreds and sometimes more than 1000 messages to review before they get posted. Subscribed addresses are posted automatically and all reviewed messages with PostgreSQL content get posted eventually. It was suggested that Marc recruit some help and Richard Huxton volunteered to help. Marc pointed out that people can subscribe to pgsql-general and set nomail and continue to read the list via the newsgroup. This would enable them to send in questions without having the posts stall for review and they also would not be flooded with pgsql-general email. Mike Mascari and the rest of us thank Marc for doing this filtering.
Sub tables which inherit from a super table do not inherit primary keys or UNIQUE constraints. The reason for this is that the indexes on a table hierarchy are unique for each table. This is a feature, not a bug, but other people may disagree. The indexes enforce the primary keys and the UNIQUE constraint. There is a workaround if you want the table hierarchy to share a primary key. This was suggested to me earlier by Oliver Elphick olly at lfix.co.uk.
To change the maximum size of an identifier in a PostgreSQL installation you must change the value of NAMEDATALEN and recompile the server. A database built with a server with a custom NAMEDATALEN value may not be used by other servers that were not compiled with the same NAMEDATALEN. Prior to 7.3b, NAMEDATALEN is set to 32. With 7.3 NAMEDATALEN is set to 64. Using 7.3 will help most people with longer and unchangeable identifier names to use the server with no customization.
Question: Can you set permissions on functions as is done in Oracle or MySQL?
In a plpgsql function which recurses, you can pass a depth parameter to convey the information about whether the function is being called for the first or nth time. There are no "global" variables to use to tell you the same information. You can also write the function using plpython instead of plpgsql. In plpython there is a statement duration dictionary called "SD" which should be accessible from all calls in the same SQL statement.
|
||||||||||||||||||||||||||||||
Comments and Corrections are welcome. Suggestions and contributions of items are also welcome. Send them in! Copyright A. Elein Mustain 2003, 2004, 2005, 2006, 2007, 2008, 2009 |