Commit Graph
4345 Commits
Author SHA1 Message Date
laurenceislaandGitHub 34958e723a Add link and explanation to download the latest unreleased builds 2021-09-03 13:04:21 -05:00
Wolfgang WaltherandSteve Chavez b05898d17f fix: Return array of objects for RPCs with single-column TABLE return type
This is a regression after changing responses for RPCs with INOUT or OUT arguments in #1615.

Resolves #1930.
2021-09-02 10:13:03 -05:00
steve-chavez d4c6abbaec feat: RPC POST for function w/single unnamed param
For POST on RPC, allows:

* passing a json object without using `Prefer: params=single-object`
  The function must be defined with a single unnamed json param and
  `Content-Type: application/json` must be specified.

* uploading binary to a function
  The function must be defined with a single unnamed bytea param and
  `Content-Type: application/octet-stream` must be specified.

* uploading raw text to a function
  The function must be defined with a single unnamed text param and
  `Content-Type: text/plain` must be specified.

BREAKING CHANGE If there's a function "my_func" having a single
unnamed json param and other overloaded pairs(with any number of
params), PostgREST won't be able to resolve a POST request to
"my_func". For solving this, you can name the unnamed json param.

my_func(json) -> my_func(prm json)
2021-08-30 18:17:59 -05:00
steve-chavez caaa34b5de refactor: add CallQuery type
Shortens requestToCallProcQuery, which should generate SQL in a more
direct way.
2021-08-30 18:17:59 -05:00
steve-chavez c9a60373f6 refactor: PgArg to ProcParam
Clarify the difference between arguments and parameters.
Parameters are part of the function definition, arguments are the values
passed to the function.

Also clarify the findProc function comments and error message.
2021-08-30 18:17:59 -05:00
laurenceislaandGitHub ed5072f4b1 fix: Detect default values for String types in OpenAPI output (#1928) 2021-08-27 21:59:54 -05:00
Felix YanandRemo ed98ac9d7e Allow newer base, hspec, and retry
Builds fine and all tests are passing here, with the new versions.
2021-08-19 18:44:30 +02:00
Gaurav GautamandGitHub d9f1ae6a46 feat: Add Retry-After hint (#1916)
Add Retry-After header when response status is 503.
Its value is the connection worker delay(seconds) when
it's recovering.

This closes issue #1817.
2021-08-18 10:14:29 -05:00
Wolfgang WaltherandRemo 5874482f03 nix(fix): Database cluster not cleaned up before artifact upload 2021-08-15 12:35:52 +02:00
Wolfgang WaltherandRemo 0511e99dd4 nix(refactor): Add withPath to checkedShellScript 2021-08-15 12:35:52 +02:00
laurenceislaandGitHub 91152ebad0 Add partitioned tables in the schema cache 2021-08-13 17:31:01 -05:00
laurenceislaandGitHub 4e4548d702 feat: Include partitioned tables into the schema cache
Allows embedding, UPSERT, INSERT with Location response, OPTIONS request and OpenAPI support for partitioned tables
2021-08-13 15:06:56 -05:00
Laurence Isla f7108e8612 Add example apps to ecosystem
Add postgres-postgrest-cloudflared-example and svelte-postgrest-template
2021-08-11 20:13:04 -05:00
steve-chavez 0d23be7731 Fix logging blocks not showing on RTD 2021-08-10 00:37:25 -05:00
steve-chavez fcabf4012b Reorder release notes for v8.0 2021-08-10 00:26:24 -05:00
Laurence Isla ff30d4d417 Update config.py version/release 2021-08-09 18:29:37 -05:00
laurenceislaandGitHub 98350e2941 Update docker configuration 2021-08-09 18:06:45 -05:00
steve-chavez 42656edfd9 Improve wording in some sections 2021-08-09 14:10:46 -05:00
Laurence IslaandSteve Chavez 37c2a8aa7b Make the landing page wider
* Add max-width for logos only

* Fix margin on sponsor images and add reference to the PostgREST team

* Fix information on v8 changelog
2021-08-09 14:10:46 -05:00
Laurence IslaandSteve Chavez 21e54aacda Rename upcoming to v8.0.0 2021-08-09 14:10:46 -05:00
Laurence IslaandSteve Chavez 12f8852183 Add fixes and sponsors to upcoming page 2021-08-09 14:10:46 -05:00
steve-chavez 254a2f7f36 Add in-db config plus reloading 2021-08-09 14:10:46 -05:00
steve-chavez 698db87590 Reorder configuration reloading 2021-08-09 14:10:46 -05:00
steve-chavez 8d4bc76aab Add entry for OPTIONS on views
* Also clarify the schema cache page
2021-08-09 14:10:46 -05:00
steve-chavez 52cdd50561 Show timestamps for server diagnostic information 2021-08-09 14:10:46 -05:00
steve-chavez 57d725bab6 Add Bearer without capitalization 2021-08-09 14:10:46 -05:00
steve-chavez 9543e746ec Mention log-level=crit/error increase throughput 2021-08-09 14:10:46 -05:00
steve-chavez 33f0da0509 Add no downtime schema cache reload 2021-08-09 14:10:46 -05:00
Remo b3899e7aa4 ci: Set Docker Hub username 2021-08-08 06:42:59 +02:00
monacoremo 6d9fcfa09f ci: Remove unused create_test_db script 2021-08-08 06:42:59 +02:00
monacoremo 38e5b76996 ci: Remove appveyor.yml 2021-08-08 06:42:59 +02:00
monacoremo ca4539e78d ci: Remove .travis.yml 2021-08-08 06:42:59 +02:00
monacoremo a54a61d00e ci: Remove .circleci/config.yml 2021-08-08 06:42:59 +02:00
monacoremo 142fc06b15 ci: Add .github/release script that tags and pushes a new release 2021-08-08 06:42:59 +02:00
monacoremo c7b1cda3ed ci: Move codecov.yml and add thresholds as intermittent fix to random coverage changes 2021-08-08 06:42:59 +02:00
monacoremo fb2adea5e9 ci: Adjust build status badge in READMEs 2021-08-08 06:42:59 +02:00
monacoremo d9b15adb35 ci: Use GitHub Actions for CI/CD 2021-08-08 06:42:59 +02:00
Laurence Isla 20bee2ec34 Fix log-level value for status 4xx errors 2021-08-02 18:33:50 -05:00
Duncan OgilvieandGitHub c4387ec7dd Mention environment variables in the configuration section 2021-08-02 11:45:12 -05:00
steve-chavez 0bc7c034cf Bump to version v8.0.0 v8.0.0 2021-07-25 23:12:51 -05:00
steve-chavez cbe0e5254e Reorganize the CHANGELOG
* Removed some entries that were fixes for the nigthly versions, not
stable versions.
* Reference the actual issue number(not the PR number) on some entries
* Remove duplicate entries
* Clarify some entries
* Grouped CLI entries
2021-07-25 23:12:51 -05:00
Laurence IslaandSteve Chavez 6909e3435e Add changelog for embedding views recursively 2021-07-25 14:49:42 -05:00
laurenceislaandGitHub 2e50a22e64 Add config reloading with SIGUSR2 2021-07-24 18:52:52 -05:00
laurenceislaandGitHub 5cbabe4a21 Add database notification functionality and configuration variables for schema reloading 2021-07-24 16:27:02 -05:00
laurenceislaandGitHub 77faf9e9bc Add explicit headers-only POST request using Prefer header and default the request to minimal 2021-07-23 17:15:30 -05:00
Remo RechkemmerandGitHub 68bf17118d Upgrade Nix dependencies including nixpkgs and static-haskell-nix (#1899) 2021-07-23 19:54:29 +02:00
laurenceislaandGitHub 41325fd9ba Add db-prepared-statements config option 2021-07-23 11:41:47 -05:00
laurenceislaandGitHub f5c5094d7d Add db-tx-end config option 2021-07-21 19:49:41 -05:00
laurenceislaandGitHub a7cddd8ece Add log-level config option 2021-07-21 14:40:34 -05:00
laurenceislaandGitHub 204b0ed259 Add improved error messages for RPC on a stale schema
Error message for a not found RPC.

Unsupported overloaded RPC with the same argument names but different types.
2021-07-20 16:40:45 -05:00