19th and 20th of May have been days of the PostgreSQL conference.
During those 2 days, I saw some good presentations and stuff like that may help (perhaps) in increasing my own database knowledge related to PostgreSQL.
By the way, for sure, what I heard from this conference will help me not only for my current work but also it could give ideas for future design tasks.

As a lucky one, there were never two presentations happening at the same time even if conference was on 3 tracks. So let’s take chronologically each presentation I had the chance to see. In this post I don’t give my impression about everything seen, but just on the main matters that I think have a relative importance to facilitate your lecture.

On the 19th I saw first a presentation about Sharding for unlimited growth, given by Robert Treat. Sharding is a technique that could bring scale growth to large database systems (millions of operations, users) through an horizontal scaling (scaling in/out, increase the number of database nodes in terms of servers, and not in term of local resources). The idea behind it is to try to bring to a database the possibility to grow without losing its scalability and resolve SPOF (single point of failure) problems within a database system. For this purpose a couple of solutions were proposed based on data mapping or on the division of applications data into various databases located on multiple nodes (for example a website application may have its user data and forum data on separated nodes). All the ideas based their assumptions on making the application taking care of data mapping, so the database does not need to do anything but just deal with data. So I would say that Sharding is an up-layer of a database application that is focused on the optimization of applications running on top of database node(s).

Then there was an interesting presentation about the review of patches by Stephen Frost. The goal of this presentation was to teach the attendance about all the tools and formats used within and for PostgreSQL. Useful stuff such as when you want to send a patch, who you should contact. If you want to help in reviewing a patch, you can contact such or such person. This presentation told also about the formatting used in PostgreSQL: code refactoring, code quality, code duplication. Still, if a project has no such an organization, it for sure can become a mess quickly. So I personally keep a good impression about it.

The first day was full of surprises, there were another 2 presentations that caught my attention: something about Foreign data wrapper and another by Tom Lane, “How to hack the planner”.
Always by being focused on what I do for Postgres-XC, I am not very familiar with the functionalities introduced since 9.0. So it was a pleasure to find a presentation that introduced the foreign data wrapper functionality and some additional stuff a Japanese functionality is developing based on the feature of 9.0. A foreign data wrapper adds functionalities to enable a Postgres server to interact with a remote database or remote data files and show it in a nice way in your PostgreSQL instance. For instance you can show cvs files stored somewhere directly on a psql terminal. By the way, the presentation by Yotaro Nakayama shew a couple of additional features for foreign data wrappers: the capacity to interact with additional database systems and not only Postgres instances. His team has developed some extra features to be able to create foreign tables that can be seen from Oracle or MySQL instances. This consists more or less of taking into account the specificities used in each db softwares and to translate them in a Postgres-way. Fascinating. For the impression I keep, it looked that the development was at a fairly advanced stage but it wasn’t in the plans of Nakayama’s team to release publicly the work done :( .

By the end of the day came a presentation about PostgreSQL planner. For sure the presentation which was the most difficult to access to not only by the level of understanding which is necessary to understand what is dealt about but also by the quantity of information that has been discussed about. So in two terms this presentations can be qualified as: qualitative and quantitative. The planner of PostgreSQL is perhaps the hardest part of the code in terms of complexity, so making a presentation about it is even more complex. The presentation begun with some general explanation about Postgres’ parser/rewriter/planner/executor but after a couple of minutes quickly came the main dish, and the audience became aware of how planner is complicated not by its general way of working, but by all the cases that have to be taken into account in the most generalized way in their implementation to increase dependencies between each case. However, some cases such as the analysis of JOIN planning made the comprehension even easier. Some general explanation about the key structures also came at the good time to light up the basics of planning. The part that personally caught the most my attention was about costs planning of queries, and particularly the fact that sometimes a cost estimation could lead to cost higher than expected (case of LIMIT). However, to conclude on it, there are still areas of improvement of planner and Postgres is in need of people who could work on it.

The second day, one presentation in particular caught my attention. PostgreSQL 9.1 introduces SSI level, serializable snapshot isolation. One result is particular is amazing… Let’s tell more about that. In serializable transactions, you have to take care of cycles of transactions due to their read/write conflicts. For example, let’s imagine that you have a transaction performing a read on a tuple being written (by DML, UPDATE, DELETE, INSERT) by another transaction, you need to check if the transaction performing the write does not perform a read on a tuple being modified by a third transaction… This continuing until you know that there are no transactions trying to perform a read on something that has been modified by the first transaction. If you have a read/write conflict cycle, you need to abort one transaction to break the cycle and save all the other transactions from a deadlock condition. However, in order to check that, you have to go through all the transactions that could enter in the cycle, which is really resource consuming. By the way, the idea that caught my mind was that you do not need to check that all the cycle of transactions. You just need to check if the transaction you are on has not at the same time an in and an out read/write conflict. An in read/write conflict means that your transaction reads something that is being updated. An out read/write conflict means that what is updated by your transaction is not read. In case your transaction has at the same time and in and out read/write conflict, you need to abort something on the cycle it is on. However, if such a check is made on each transaction, doesn’t it increase the number of transaction being aborted, as there could be transactions in a semi cycle not closed, what would not need to be aborted, but would be aborted to satisfy the SSI check?

雨と夢の後に、柳美里。Below rain and dream, a novel by Yu Miri.

雨と夢の後に。。。“Ame to Yume no ato ni” exists also as a Japanese Drama, but it will no be question of that in the ticket. This article is focused on the book only.
Ame is a middle-school girl whose father, Tomoharu, is a butterfly hunter. With his job, Tomoharu has to travel to a lot of countries in the world, forcing his daughter to have a lonely daily life most of time. Ame, written with the Japanese character rain, does not like her name, as well as she doesn’t like rain, and as well as she doesn’t like being alone at her place. But she has no choice to wait for her father and to continue her life as if he were here. Why her father has chosen such a name? Tomoharu’s name means Morning Clear sky, the opposite of Rain…
One day, in Taiwan, Tomoharu falls in a deep hole in the jungle and injures himself. he was chasing at this moment a butterfly called Kotoki-shita-ageha (コウトウキシタアゲハ). Fortunately, he comes back to his daughter a couple of days later. When he comes back home, his shoes are full of mud and he looks so wet, and so cold. But Tomoharu promises Ame that they will never get separated again. Tomoharu’s return from Taiwan coincides with the meeting of Ame with her strange neighbour, a young women who had problems with her fiance. This women has always the same laundry hanging at her balcony. What a messy person, no?

Butterfly maleReading this novel will make you travel through the eyes of this young 12-year-old girl who has to grow up as an adult quickly than she thought. You really have to see this book as a journey, where a young girl discovers more and more about her first, and people in her environment. Sometimes she feels lost, sometimes she cries, but also sometimes she is happy. And Yu Miri has particularly focused the novel to make the reader live the story through Ame’s emotions. This makes the book easy to read for both Japanese people and even foreigners I think. “Ame to Yume no ato ni” is classified as an horror book. This is kind of true, but after reading it, perhaps you will think “What is scary here?”. Horror events are made pretty softly so as not to change the orientation of storyline. There are a couple of non naturals events, of course, but they are perfectly in accordance to the environment of apartments 205 and 206.

Butterfly femaleThis novel is really light to read, and you will have pleasure go through the adventures lived by Ame and her father Tomoharu. A nice combination of quest to truth, of children dreams, and of Japanese traditional believes gives a nice balance that help the reader go until the end of the adventures of Ame. That is why I strongly recommend this novel.
Previously, I told “Japanese tradition”… What has it to do with the story of a middle-school girl and her father? Unfortunately you will have to read this book if you want to know more. So have fun go through it, even several times. When you see it in a book store, you should not even hesitate to take it!

Note about the title translation: I thought “Below” was more adapted than “After” or the idea of something happening as a consequence of another event. To my viewpoint, it sticks more to the spirit of the book. My apologies if you think this is not exact.

東京DOLL、石田衣良. Tokyo doll, novel by Ishida Ira

Tokyo doll coverMG, Master of Game in shorter, is the creator a a famous series of RPG-strategy game called Urban Goddess (Megami-toshi) that have been solved at million of copies through Japan. In this game, Tokyo is divided into several areas. Each area is commanded by a God, and each God has its own vision of life. So basically the player has to choose an area and make his portion of Tokyo grow by fighting with the other Gods. This game have been very successful because it tends to make an exact copy of Tokyo but in the future. Until now, the first three episodes has been really successful, assuring fortune and success to MG and his colleagues and friends. At the beginning of Tokyo Doll, MG is starting to design the fourth episode of the series. In lack of inspiration, he doesn’t know from which point he should begin his work, until he meets a twenty-year old girl called Yori. This girl, whose body has perfect feminine dimensions, is extremely beautiful and it does not let MG insensitive. He decides to hire Yori as a photograph model for the game. She accepts, as it is well paid and with the money earned with this job she will be able to pay the fees to go studying hairdressing. Yori is going to have her image used as one of the Goddesses of Urban Goddess. Then, Yori, by investing more and more time in her model work, begins to have feelings for MG and reciprocally.

Shibuya girls, Kawaiii~The starting plot of Tokyo is nice, a talented game creator in lack of inspiration needs a source of inspiration, preferably young and attractive, who will be the image of his design work. He finds this muse in a convenient store below his apartment building. From the moment of the meeting of Yori and MG, the story really begins… to slow down. In case you want to read this book and that you are allergic to the Shibuya or Harajuku young Japanese girl always saying Kawai-Kawai, just avoid it. Through the character of Yori, this book is full of references to this generation of Japanese girl focusing their attention on fashion and consumerism. Reading the full story will make you notice a lot of cliches returning to the typical Tokyoite girl fashioned teenager. Perhaps wanted like this, it makes the book story heavier than it has to be. The first pages make you think that the game design work of the talented artist looking for inspiration will be the main line of the story plot, but the complicated relation between the model and the artist is the real centre of the scenario. The target public of this book is certainly young in the teenage, and certainly feminine.

A real dollThen, a couple of words about the complicated relationship between Yori and MG. Like a muse present in the story to inspire the artist, who is the only creator in the book, Yori is pure and innocent. MG uses her innocence to abuse of the talents of his model (in all the senses of the terms), in order to achieve his goal of a game design at the image of Yori. The lack of deepness in the character of Yori can be understood as she has to stay at the state of image for the game design. The point of her having some supernatural prediction powers is also a bit too much. This doesn’t help the book to accelerate his rhythm but it makes it easier to read, perhaps because this book is primarily targeted to a young public. In conclusion, if you have an interest in trying to inform you about fashioned Tokyoite turning their mind to consumerism, love stories of an artist with his innocent and beautiful 20-year-old muse, you will perhaps find an interest in this book. In other cases, you should just avoid it.

Tokyo Sonata (トウキョウソナタ in Japanese, written in Katakana) is a film released in 2008 directed by Kiyoshi Kurosawa.

It is world-wide known through the numerous prices it won:

  • Best Film at the 3rd Asian Film Awards
  • Award “Un Certain Regard” (a certain sight) from Cannes Festival 2008
  • And a couple of nominations

Tokyo Sonata is about a middle class family living in Tokyo, the Sasaki. The family has four members:

  • Ryûhei Sasaki (Teruyuki Kagawa) the famoly head, a Japanese salaryman
  • his wife Megumi (Kyoko Koizumi), devoted housewife, taking carre of everybody’s daily file
  • Takashi (Yu Koyanagi), the elder son, a university student
  • Kenji (Kai Inowaki), the younger son, a middle school student.

Poster of Tokyo SonataThe plot of this movie is focused on the crisis each character is going through all the problems they are facing.
The elements affecting one character has also effects on another one, this movie looks something like a butterfly effect.
After this analysis digression… A little bit more about the story.
Ryuhei, the father, is a “traditional” Japanese salaryman, white shirt, back jacket and black shoes as you can see everyday in Tokyo. He works for his company as a Seishain (permanent employee) and has a good income. One day he is fired because Chinese workers are far cheaper than him. While attempting to find a new job, Ryuhei encounters an old classmate on the street close to a place where meals are being distributed for homeless people. Kurosu (Kanji Tsuda), who has also been fired recently. Kurosu uses a feature on his mobile phone that plays the ring tone periodically, so that it may fool others into believing he’s still employed. Ryuhei doesn’t understand why he does that and is intrigated by this, so he decides to hide to his family that he has been fired. Without telling anything, Ryuhei goes to a lot of troubles, for example he finds a new job. There he finds in an envelop a lot of money, and becomes crazy, trying to escape to a place where he could use this money in liberty.

Kenji, piano geniousA couple of words about Megumi Sasaki, the mother. When Ryuhei is fired, she doesn’t notice anything the first couple of days. But she slowly understands the reality…
Strange things also happen to her. One day, while alone at home, she is taken hostage by an unemployed man who broke into her house, aiming for money. This guy got fired and didn’t know what to do to survive, it was his first robbery act. They escape from the Sasaki’s house, and on the way to escape, something happened that made Megumi want to escape far away from the robbery. Once again, it is not the point to tell what is happening to her in details, you had better have a look at the movie.
And so she escapes from her tiring daily life.

About the elder son, Takashi is a university student in the twenties. He is the typical image of the lost human in the twenties looking for his identity. He makes his parents believe that he goes studying everyday while he spends his time wit his friends or working on hourly-based small works, such as distributing tissue paper on the street. Looking for his way, he joins the American military forces where he is deployed to Irak.

The youngest son, Kenji, is a mysterious character. One day he discovers a strong interest for piano lessons, and begins to take lessons. He quickly develops a strong bound with his piano teacher, Mrs Kaneko. Kenji is extremely talented in piano, his Kaneko even thinks Kenji is a kind of prodigy! However, deciding to pay those piano lessons with his lunch money, his mother soon discovers that his is taking music lessons without the authorization of his family. Megumi is supportive to the children while Ryuhei gets furious when he learns that, even making a minor injury on Kenji.

The same night, all the characters go through a lot of different adventure. For a Japanese family in complete deconstruction, is the blood bound more important than the personal ambitions? You can just know that if you look at this movie!

Family dinnerTokyo Sonata presents a particular family that is very representative to the Japanese environment just after the economical bubble explosion at the beginning of the nineties. At this moment, Japan was flouring and everybody was having a nice life, being enthusiastic and optimistic about their future. Tokyo Sonata is an exaggerated image of what would happen to a family if all the members were facing events that would definitely change their life at the same time by crazy choices made instantly. It is a representation of what people would like to do without doing it.
That is why… You have to love it. If you are wondering what would happen to a family literally being destroyed to small pieces due to external events, or more simply you just want to have fun for two hours, you have to watch it. It is a strong recommendation.
Kiyoshi Kurosawa has made Tokyo Sonata so as that at each moment you will try to imagine what will happen to each character. Tokyo Sonata makes you think, and it thinks for you by delivering series of causes and consequence that lead to an end that is not said here.

But for sure you will think: “What the hell happened now?!”

Note: At the end, have a look at the latest seconds of the movie, it could explain more what happened to you during two hours.

©2010-2013 Michael Paquier All content is ©Copyright of Otacoo.com 2010-2013. Privacy Policy - Terms of Use