Merge ~clinton-fung/launchpad:faq-migration-postgres into launchpad:master

Proposed by Clinton Fung
Status: Rejected
Rejected by: Clinton Fung
Proposed branch: ~clinton-fung/launchpad:faq-migration-postgres
Merge into: launchpad:master
Diff against target: 93 lines (+34/-30)
3 files modified
doc/explanation/index.rst (+1/-0)
doc/explanation/postgres.rst (+33/-0)
doc/faq.rst (+0/-30)
Reviewer Review Type Date Requested Status
Launchpad code reviewers Pending
Review via email: mp+430151@code.launchpad.net

Commit message

Relocate database-related information from FAQs to a new section under Explanation

Description of the change

Relocate database-related information from FAQs to a new section under Explanation

To post a comment you must log in.
Revision history for this message
Clinton Fung (clinton-fung) wrote :

Unmerged commits

7101322... by Clinton Fung

Relocate database-related information from FAQs to a new section under Explanation

Succeeded
[SUCCEEDED] docs:0 (build)
[SUCCEEDED] lint:0 (build)
[SUCCEEDED] mypy:0 (build)
13 of 3 results

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/doc/explanation/index.rst b/doc/explanation/index.rst
2index c6b72d0..a7db240 100644
3--- a/doc/explanation/index.rst
4+++ b/doc/explanation/index.rst
5@@ -12,3 +12,4 @@ Explanation
6 architecture
7 pip
8 favicon
9+ postgres
10diff --git a/doc/explanation/postgres.rst b/doc/explanation/postgres.rst
11new file mode 100644
12index 0000000..96b9bcf
13--- /dev/null
14+++ b/doc/explanation/postgres.rst
15@@ -0,0 +1,33 @@
16+==================
17+Launchpad database
18+==================
19+
20+Why PostgreSQL?
21+===============
22+
23+PostgreSQL was chosen in 2004 because it supported most of the features we
24+thought we would need; MySQL did not. The other contender was Oracle, and
25+for a while we made sure we would be able to switch to Oracle if necessary
26+but PostgreSQL has worked great.
27+
28+How integrated is the database in the code?
29+===========================================
30+
31+Highly. We make use of PostgreSQL specific features, such as:
32+
33+* SQL language extensions
34+* PL/pgSQL and Python stored procedures
35+* Triggers
36+* Functional indexes
37+* Automatic load balancing over the replicas with Slony-I
38+* Transactional DDL
39+* tsearch2 full text search
40+* Database permissions
41+
42+My database permissions keep getting deleted!
43+=============================================
44+
45+If your local account is called "launchpad" it conflicts with a role called
46+"launchpad" which is defined in ``database/schema/security.cfg``. You need
47+to rename your local account and re-assign it superuser permissions as the
48+``utilities/launchpad-database-setup`` script does.
49diff --git a/doc/faq.rst b/doc/faq.rst
50index cc7a6a7..e2c1304 100644
51--- a/doc/faq.rst
52+++ b/doc/faq.rst
53@@ -8,28 +8,6 @@ Are there Launchpad packages available?
54 No, Launchpad is not packaged and there are no plans to do so. Launchpad
55 deployment is done straight from Git branches and is quite complex.
56
57-Why PostgreSQL?
58-===============
59-
60-PostgreSQL was chosen in 2004 because it supported most of the features we
61-thought we would need; MySQL did not. The other contender was Oracle, and
62-for a while we made sure we would be able to switch to Oracle if necessary
63-but PostgreSQL has worked great.
64-
65-How integrated is the database in the code?
66-===========================================
67-
68-Highly. We make use of PostgreSQL specific features, such as:
69-
70-* SQL language extensions
71-* PL/pgSQL and Python stored procedures
72-* Triggers
73-* Functional indexes
74-* Automatic load balancing over the replicas with Slony-I
75-* Transactional DDL
76-* tsearch2 full text search
77-* Database permissions
78-
79 What version of Python is required?
80 ===================================
81
82@@ -50,11 +28,3 @@ Development Launchpads don't send email to the outside world, for obvious
83 reasons. They connect to the local SMTP server and send to root. To create
84 new users, create a new account and check the local mailbox, or see
85 :doc:`how-to/new-user`.
86-
87-My database permissions keep getting deleted!
88-=============================================
89-
90-If your local account is called "launchpad" it conflicts with a role called
91-"launchpad" which is defined in ``database/schema/security.cfg``. You need
92-to rename your local account and re-assign it superuser permissions as the
93-``utilities/launchpad-database-setup`` script does.

Subscribers

People subscribed via source and target branches

to status/vote changes: