Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DRAFT] Brecht/skipped events again #14

Draft
wants to merge 10 commits into
base: master
Choose a base branch
from
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
name: Test ${{ matrix.test }}
services:
postgres:
image: postgres:14-alpine
image: postgres:17-alpine
env:
POSTGRES_PASSWORD: password
ports:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
name: Test ${{ matrix.test }}
services:
postgres:
image: postgres:14-alpine
image: postgres:17-alpine
env:
POSTGRES_PASSWORD: password
ports:
Expand Down
4 changes: 2 additions & 2 deletions build/build.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Bullseye" Version="4.2.0" />
<PackageReference Include="SimpleExec" Version="11.0.0" />
<PackageReference Include="Bullseye" Version="5.0.0" />
<PackageReference Include="SimpleExec" Version="12.0.0" />
</ItemGroup>

</Project>
1 change: 0 additions & 1 deletion src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="MinVer" Version="4.2.0" PrivateAssets="All" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All"/>
</ItemGroup>
<Target Name="Adjust_Version_1_Releases_AssemblyVersion" AfterTargets="MinVer" Condition="'$(MinVerMajor)' == '3'">
<PropertyGroup>
Expand Down
4 changes: 2 additions & 2 deletions src/LoadTests/LoadTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="EasyConsoleStd" Version="2.0.0" />
<PackageReference Include="Serilog" Version="3.1.1" />
<PackageReference Include="Serilog.Sinks.File" Version="5.0.0" />
<PackageReference Include="Serilog" Version="4.1.0" />
<PackageReference Include="Serilog.Sinks.File" Version="6.0.0" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\SqlStreamStore.Postgres\SqlStreamStore.Postgres.csproj" />
Expand Down
5 changes: 3 additions & 2 deletions src/SqlStreamStore.Postgres/PgSqlScripts/AppendToStream.sql
Original file line number Diff line number Diff line change
Expand Up @@ -99,15 +99,16 @@ BEGIN

IF cardinality(_new_stream_messages) > 0
THEN
INSERT INTO __schema__.messages (message_id,
INSERT INTO __schema__.messages (position,
message_id,
stream_id_internal,
stream_version,
created_utc,
type,
json_data,
json_metadata,
transaction_id)
SELECT m.message_id, _stream_id_internal, _current_version + (row_number()
SELECT nextval('__schema__.messages_seq'), m.message_id, _stream_id_internal, _current_version + (row_number()
over ()) :: int, _created_utc, m.type, m.json_data, m.json_metadata, pg_current_xact_id()
FROM unnest(_new_stream_messages) m
ON CONFLICT DO NOTHING;
Expand Down
Loading
Loading