Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
matrix-media-repo
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
matrix-media-repo
Commits
9dd46380
Commit
9dd46380
authored
4 years ago
by
Travis Ralston
Browse files
Options
Downloads
Patches
Plain Diff
Add a note about changing ownership of the resources
parent
f403e0de
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CHANGELOG.md
+6
-0
6 additions, 0 deletions
CHANGELOG.md
with
6 additions
and
0 deletions
CHANGELOG.md
+
6
−
0
View file @
9dd46380
...
...
@@ -18,6 +18,12 @@ a large database (more than about 100k uploaded files), run the following steps
2.
If you have no intention of using stats or quotas, you're done (the stats table will be inaccurate). If
you do plan on using either, run
`INSERT INTO user_stats SELECT user_id, SUM(size_bytes) FROM media GROUP BY user_id;`
which may take a while.
3.
Change the owner of the table and function to your media repo's postgresql user. For example, if your postgres
user is
`media`
, then run:
```
sql
ALTER
TABLE
user_stats
OWNER
TO
media
;
ALTER
FUNCTION
track_update_user_media
()
OWNER
TO
media
;
```
### Added
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment