gitlab-org--gitlab-foss/lib
Stan Hu 0f5b735685 Fix stage index migration failing in PostgreSQL 10
As discussed in
https://www.postgresql.org/message-id/9922.1353433645%40sss.pgh.pa.us,
the PostgreSQL window function last_value may not consider the
right rows:

Note that first_value, last_value, and nth_value consider only the rows
within the "window frame", which by default contains the rows from the
start of the partition through the last peer of the current row. This is
likely to give unhelpful results for last_value and sometimes also
nth_value. You can redefine the frame by adding a suitable frame
specification (RANGE or ROWS) to the OVER clause. See Section 4.2.8 for
more information about frame specifications.

This query could be fixed by adding `RANGE BETWEEN UNBOUNDED PRECEDING
AND UNBOUNDED FOLLOWING`, but that's quite verbose. It's simpler just to
use the first_value function.

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/59985
2019-04-03 22:47:51 -07:00
..
api Add port section to CI Image object 2019-04-03 09:50:54 +00:00
assets
backup Replaced config access 2019-03-18 17:26:18 +00:00
banzai Prepare suggestion implementation for multi-line 2019-03-27 12:26:53 -03:00
bitbucket
bitbucket_server Adds the Rubocop ReturnNil cop 2019-03-06 17:51:56 +02:00
constraints Fix git clone revealing private repo's presence 2019-02-19 13:59:24 +08:00
container_registry
declarative_policy Adds the Rubocop ReturnNil cop 2019-03-06 17:51:56 +02:00
flowdock
generators/rails/post_deployment_migration
gitaly
gitlab Fix stage index migration failing in PostgreSQL 10 2019-04-03 22:47:51 -07:00
google_api Explicitly set master_auth for new GKE clusters 2019-03-13 16:28:04 +13:00
haml_lint
json_web_token
mattermost
microsoft_teams
object_storage
omni_auth/strategies
peek Provide a performance bar link to the Jaeger UI 2019-02-08 14:08:31 +02:00
quality
rouge
rspec_flaky
safe_zip Fix uninitialized constant with GitLab Pages deploy 2019-01-31 16:52:51 +01:00
sentry Handle missing keys in sentry api response 2019-03-29 14:53:40 +00:00
serializers
support
system_check Adds the Rubocop ReturnNil cop 2019-03-06 17:51:56 +02:00
tasks Merge branch 'remaining-lib-differences' into 'master' 2019-04-03 12:27:55 +00:00
after_commit_queue.rb
backup.rb
banzai.rb
carrier_wave_string_file.rb
declarative_policy.rb
event_filter.rb Add hard coded event type filter 2019-03-07 12:13:34 +02:00
expand_variables.rb
extracts_path.rb
feature.rb Allow setting feature flags per GitLab group 2019-02-19 14:57:03 +08:00
file_size_validator.rb
forever.rb
gitlab.rb Use a fixed git abbrev parameter when we fetch a git revision 2019-03-28 15:24:56 +02:00
gt_one_coercion.rb
milestone_array.rb
mysql_zero_date.rb
static_model.rb
system_check.rb
uploaded_file.rb
version_check.rb