Skip to content
Snippets Groups Projects
  1. Jul 01, 2024
  2. Jun 28, 2024
  3. Jun 26, 2024
  4. Jun 21, 2024
    • Vartan Babayan's avatar
      feat: remove owner from _pico_index table · 3c5abd25
      Vartan Babayan authored
      3c5abd25
    • Arseniy Volynets's avatar
      feat: support sql dml for global tbls · 0cc18871
      Arseniy Volynets authored
      - update sbroad submodule to commit with helper
      patches for dml on global tables
      - add support for sql dml insert/update/delete
      on global tables. Insert on conflict is not
      supported yet
      - Current implementation uses a single batch of
      dml commands via CAS. No additional predicates
      are used in CAS, so no isolation level is guaranteed
      even when query only refers to global tables
      0cc18871
  5. Jun 20, 2024
  6. Jun 19, 2024
  7. Jun 18, 2024
  8. Jun 14, 2024
  9. Jun 05, 2024
    • Georgy Moshkin's avatar
      fix: pretty sql parsing error messages · d1d90c86
      Georgy Moshkin authored
      Previously when running `pico.sql [[ create table foo ]]` we would get
      this output:
      ```
      ---
      - null
      - "sbroad: rule parsing error:  --> 1:9\n  |\n1 |  create table foo \n  |  ^---\n
        \ |\n  = expected Unique"
      ...
      ```
      
      But now the output will be:
      ```
      ---
      - null
      - |+
        sbroad: rule parsing error:  --> 1:9
          |
        1 |  create table foo
          |         ^---
          |
          = expected Unique
      
      ...
      ```
      d1d90c86
  10. Jun 03, 2024
  11. May 29, 2024
  12. May 27, 2024
  13. May 21, 2024
  14. May 16, 2024
    • Maksim Kaitmazian's avatar
      fix(pgproto): non-admin users can't read from query cache · c786dcd2
      Maksim Kaitmazian authored
      This commit fixes that non-admin users can't read queries from the query cache.
      An attempt to read from the cache used to result in the following error:
      sbroad error: failed to get space_def: box error: AccessDenied: Read access to space '_pico_table' is denied for user 'alex3'
      
      Previously, an error would occur when a user ran the same query twice.
      During the first execution, the query was prepared and cached. However,
      on the second execution, the client attempted to retrieve the query from the
      cache and encountered an access denied error.
      c786dcd2
  15. May 14, 2024
    • Arseniy Volynets's avatar
      fix: panic on non-unique index name · e041d7d1
      Arseniy Volynets authored
      - we didn't check that index name is unique
      in indexes meta table. That led to panics
      when index with same name was created for
      two tables.
      - previous commit set wrong sbroad submodule.
      Set sbroad submodule to correct commit
      e041d7d1
  16. May 06, 2024
  17. Apr 10, 2024
  18. Apr 03, 2024
  19. Mar 20, 2024
  20. Mar 18, 2024
  21. Mar 12, 2024
  22. Mar 07, 2024
    • Arseniy Volynets's avatar
      feat: support grant revoke procedure from sql · df8eb430
      Arseniy Volynets authored
      - Update sbroad submodule to commit with
      grant/revoke procedure support
      - Use existing mechanisms for grant/revoke
      ACL opcodes for grant/revoke procedure
      implementation
      - Add integration tests
      - Valid combinations:
      
      all procedures: grant/revoke create/execute/drop
      specific procedure: grant/revoke execute/drop
      
      - Syntax:
      
      grant create procedure to alice option(timeout=3)
      grant execute procedure on "spam"(int) to "alex"
      grant drop procedure on foo to bob
      revoke drop procedure on foo from bob
      df8eb430
    • Maksim Kaitmazian's avatar
      feat: add portal/statement storages · 3521184b
      Maksim Kaitmazian authored
      This commit introduces:
       * statement and portal storages;
       * statements with parameter oids;
       * portal encoding;
       * interactive portals;
      
      Portal encoding defines in which format (binary or text) columns
      are returned.
      
      Interactive portals allow to limit the number of rows returned from
      execute method. Other rows can be extracted by calling execute again
      on the same portal.
      3521184b
    • Maksim Kaitmazian's avatar
      refactor: rename Portal to Statement · 5f7e4ebe
      Maksim Kaitmazian authored and Maksim Kaitmazian's avatar Maksim Kaitmazian committed
      5f7e4ebe
  23. Mar 04, 2024
    • Arseniy Volynets's avatar
      feat: support rename procedure from sql · dd17afb3
      Arseniy Volynets authored
      - add new ddl opcode for renaming procedure
      - update sbroad submodule to get sql support
      - syntax:
      
      alter procedure "foo" rename to "bar" option(timeout=3)
      alter procedure "foo"(int, int) rename to "bar"
      dd17afb3
  24. Feb 22, 2024
  25. Feb 21, 2024
  26. Feb 20, 2024
    • Arseniy Volynets's avatar
      refactor: move tracing from sbroad to picodata · 598ffbf4
      Arseniy Volynets authored
      - Update sbroad submodule to commit,
      with refactored tracing api: tracer
      can be provided by library user (us).
      - Use tracer that creates traces under
      admin, because traces are created randomly
      for 1% of the queries and the user may not
      have the privileges to create/modify tracing
      tables
      - Move tracing related logic to picodata repo.
      In particular, now all tables storing tracing
      - Add sql tests that were removed from sbroad
      during refactoring
      - added extra parameter 'query_id' to pico.sql
      lua api. 'query_id' is used to identify
      each query in tracing tables, if not specified
      hash function on query text is used.
      - changed signature of pico.sql to:
      pico.sql(pattern[, params, options)
      options={'traceable'=boolean,'query_id'=string}
      598ffbf4
  27. Feb 06, 2024
  28. Feb 05, 2024
Loading